I am having a hard time exporting the outcomes of the command rddensity into MS Word (or excel). I cannot use that outreg2 or esttab because these are non-regression outcomes (thus I get this error: matrix e(b) not found; run/post a regression, or specify varlist for non-regression outputs)
I have used the mat2txt command, but it requires a lot of manual work to make it look nice.
I had something like this. Any comments/idea would be appreciated
Code:
rddensity psu_score, c(600) mat m = J(8,1,.) mat m[1,1]=e(pv_q) mat m[2,1]=e(se_q) mat m[3,1]=e(N_l) mat m[4,1]=e(N_r) mat m[5,1]=e(N_h_l) mat m[6,1]=e(N_h_r) mat m[7,1]=e(p) mat m[8,1]=e(q) mat rownames m = "p-value" "Standard Error" "No. obs - left" "No. obs - right" "Eff. obs left " "Eff. obs right" "p" "q" mat2txt, matrix(m) title(Manipulation test) saving($path/Do files/density.doc) replace
0 Response to Export Rddensity outcomes
Post a Comment