Dear Statalist users,
I have been digging previous posts regarding my problem and do not seem to find the answer. Currently I'm doing analysis using psmatch2 for a data that can be grouped into strata (province, in my case). I have 33 provinces in my dataset. I would like to perform matching within province, and as the helpfile suggested, I did this:
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
To assess the quality of the matching, one of the steps I did is I follow up the above command with pstest $controlvar, both hist.
The pstest command will only test for covariate balance in my latest strata, that is the 33rd province.
My question is, does it mean that I will have to check the quality of matching for 33 estimations separately? The reason I'm asking is that because the paper I refer to, who also does matching within province, seems to only provide single assessment on the overall quality of psmatch2.
I would love to learn more from other users who has done the same experience in the past. Thank you!
Related Posts with How to assess quality of PSMATCH2 matching result in matching within strata?
Graph of multiple coefficientsHello all, I have estimated an age-period-cohort model: reg y ib1.age year_3-year_n ib1.cohort Th…
Question about loopsHello everyone! I was wondering if anybody could help me remember how to create a loop in stata. I a…
Using a probability variable to generate random dummy´sI have a probability (prob) variable, created by myself for each observation. I want to generate a d…
Specifying an error term in a two-factor, repeated measures ANOVA.Hi Everyone, I am trying to specify a two-factor repeated-measures ANOVA. I've gone through the doc…
DtwDoes anyone know if an implementation of Dynamic Time Warping ( https://en.wikipedia.org/wiki/Dynami…
Subscribe to:
Post Comments (Atom)
0 Response to How to assess quality of PSMATCH2 matching result in matching within strata?
Post a Comment