Hello all
So I am doing an analysis using psmatch2. I have run all the required commands to get ATT estimates. However, the issue I am facing is when I export the results to Latex (or any other format). The tables exported show estimates for the unmatched population and not for the ATT.
Not sure what option to add in the esttab command to have the ATT estimates reported for the matched population. Help here will be much appreciated.
Pasting my code below:
****************************************
* Propensity Score Matching (PSM)
*****************************************
preserve
drop if round==1
generate sort_id = uniform() //have set seed at the start of do-file
sort sort_id
qui probit treatment *have added covariates here*, vce(cluster cluster_code_new)
predict pscore if e(sample)
forvalues i=1/43 {
local y: word `i' of $stitch $skills $mkt $earn $mobility $nonecon $hh $spill $childnut $malepercep
eststo psm_1A_`i': psmatch2 vbt, out(`y') pscore(pscore) n(1) norepl common
}
pstest $in
restore
// Exporting tables (for first 5 variables)
cap cd "$file/Tex/Results"
forvalues i=1/1 {
local reg: word `i' of "psm"
esttab `reg'_1A_1 `reg'_1A_2 `reg'_1A_3 `reg'_1A_4 `reg'_1A_5 using "`reg'.tex", ///
se star(* 0.10 ** 0.05 *** 0.01) label replace b(3)
}
Related Posts with Propensity Score Matching - Exporting results using esttab
Time variable issue when trying a difference in difference approachGood day I want to perform a difference in difference regression defined as Code: mi estimate, e…
ASDOC: Dropping base level of factor variablesDear all users pf Statalist I do not find option of the command of asdoc to drop base level of fact…
Help with xtreg, splines and trends?Hi all, since my last post I have read the FAQs and so this should be a better post; Now, I am doin…
by id: replace var1[1] = max(var1), error "weights not allowed"Dear community I have the following types of panel data: The actual data is huge, so ask questions t…
Unzipping fileHello. I am having trouble unzipping a file with Stata. Please see picture attached. …
Subscribe to:
Post Comments (Atom)
0 Response to Propensity Score Matching - Exporting results using esttab
Post a Comment