Dear Statalists,
I am working on treatment effects of foreign acquisition on firms' productivity, in which I use propensity score matching to match firms that have similar characteristics (one is acquired and the other stay in domestic hand) and see how their productivity differs.
I have questions over the command in the guideline for psmatch2:
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
Could you please explain what does it mean when the curly bracket "{" is used and why does, after the bracket, psmatch2 move to another line but not stay at the same line, also why does the closing bracket stay alone at another line?
Thank you so much for your concerns.
Related Posts with Matching within strata in psmatch2
How spatial panel data models deal with endogeneity problem?Hi everyone, I am looking for your suggestion about how to deal with endogeneity bias which comes f…
ytitle horiztonallyHi there! Normally, I understand one can print y-titles horizontally in Stata with the option, Cod…
Loop a time-series regression to predict out-of-sample valuesHello there, I am quite new to Stata and after desperately searching for a solution in this forum I …
Loop a regression to predict out-of-sample valuesHello there, I am quite new to Stata and after desperately searching for a solution in this forum I …
assessment of similarity of baseline covariates after performing propensity score analysisDear I am Hatem Ali. I have 2 groups of patients, one received basiliximab induction therapy and the…
Subscribe to:
Post Comments (Atom)
0 Response to Matching within strata in psmatch2
Post a Comment