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
kdensity for 10,000 variablesHello, I plan to make an illustrative graph to show kdensity graphs for about 10,000. I use the belo…
Importing data from ExcelDear All, I've got an Excel file with about 37 sheets. The sheets identical (e.g. in terms of number…
Doubt with power calculationsGreetings I am new to the forum., I am working with a categorical data set, I am trying to calculate…
Reshape Long Missing Values ErrorMy dataset is in time series format. I am converting it to a panel using the following code: Code…
Parallel loop with numlist and varlistI built a for loop with locals in it so that I can have parallel loops of a varlist and a numlist. I…
Subscribe to:
Post Comments (Atom)
0 Response to Matching within strata in psmatch2
Post a Comment