Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
st: psmatch2 with exact matching
From
Charles Stoecker <[email protected]>
To
[email protected]
Subject
st: psmatch2 with exact matching
Date
Mon, 21 Nov 2011 10:08:43 -0500
Hi Statalist,
I'm using the add-on psmatch2 (by Barbara Sinansei and Edwin Leuven -
ssc install psmatch2) to conduct propensity score matching. I would
like to use it to conduct an exact match on state and then further
match by propensity scores within state. In the helpfile for the
command it indicates this can be done with:
g att = .
egen g = group(groupvars)
levels g, local(gr)
qui foreach j of local gr {
psmatch2 treatvar varlist if g==`j', out(outvar)
replace att = r(att) if g==`j'
}
sum att
This will provide the estimate of the difference between treatment and
control groups. My question is, how do I get the standard error of
the estimated difference?
Thanks!
*
* For searches and help try:
* http://www.stata.com/help.cgi?search
* http://www.stata.com/support/statalist/faq
* http://www.ats.ucla.edu/stat/stata/