Dear all,
I am using the psmatch2 command to estimate treatment effects. I would like to export my results automated to latex, but 'eststo' only reports the effects from the unmatched sample.
Has anyone experience with this and knows how to report the results for the ATT?
Below are the code for matching and for exporting the results.
Thanks already!
Code for matching:
foreach var of varlist T1 T2 T3 {
foreach outcome of varlist outcome1 outcome2 {
eststo: xi: psmatch2 `var' ($matchvars ), kernel outcome(`outcome') kerneltype(epan) ///
common index logit
psgraph
pstest ($matchvars ), treated(`var' ) gr
}
}
Code for export
esttab using "psm$output", replace ///
ti("PSM"\label{tbl:sumclustercl10na}) ///
coeflabels ($treatmentlab) ///
mgroups("Outcome1" "Outcome2", pattern(1 1) prefix(\multicolumn{@span}{c}{) suffix(}) span erepeat(\cmidrule(lr){@span})) ///
collabels("Difference" "S.E.") ///
starlevels(* 0.10 ** 0.05 *** 0.01) ///
b(%8.3f) se(%8.3f) nopar ///
label nonumbers nogaps compress nomtitles ///
stats(empty N r2_p chi2 p, ///
fmt( 0 0 3 3 3) ///
labels(" " "Observations" "Pseudo $\text{R}^2$" "LR chi2" "Prob > chi2") ///
layout("\multicolumn{1}{c}{@}" "\multicolumn{1}{c}{@}" "\multicolumn{1}{c}{@}" ///
"\multicolumn{1}{c}{@}" "\multicolumn{1}{c}{@}" )) ///
eqlabels(none)
Related Posts with Exporting results after psmatch2
Multidimensional Energy Poverty Index (MEPI)I'm currently working on something related to energy access. While I could easily generate a binary …
Creating an index with missing data in time seriesDear Statalist forum, I would like to ask the following. I have a time series with missing data for…
Ultimatch - Nearest Neighbor, Radius, Coarsened Exact, Percentile Rank and Mahalanobis Distance Matching in one PackageHi everyone, for all that are interessted in matching (especially by Mahalanobis Distance)... ulti…
Issue with an Independent variable consisting of Non Mutually Exclusive Categories, whereby one category perfectly predicts the outcome.Hi Statalist, I'm having a number of problems with my Probit model. I am attempting to model predic…
Importing specific cells from multiple excell sheets in multiple workbooksHello everyone I have a problem I hope I can get your help with. I'm a first time poster, so please…
Subscribe to:
Post Comments (Atom)
0 Response to Exporting results after psmatch2
Post a Comment