I am running several models and only wanted to export selected regression coefficients to excel. So I created a macro variable for the selected regression coefficients since in different models they are different.
global m1did "1.treat#1.post"
I am trying to use this macro variable in the keep option in esttab
esttab y1 y2 y3 using table2.csv, b(3) se(3) title(Regression coefficients on DID model) star(# 0.1 * 0.05 ** 0.01 *** 0.001) replace bracket keep(`m1did')
However the excel exported contained all the regression coefficients, not just the coefficients on 1.treat#1.post
I tried to change to keep(`"1m1did'"') it gave me empty cells
What am I doing wrong in using the macro variable for the keep option?
Thanks!
Rui
Related Posts with A question on using macro variable
Mergin data from Global Entrepreneurship Monitor (GEM)Dear All, I am quite new to STATA and need your help. I am currently doing my master thesis and wou…
Choosing random group member observation in the presence of missing valuesDear all: I have a data set that looks roughly like this, i.e. individuals in groups. For most but …
How to estimate a Diff-in-Diff with this longitudinal data structure?Dear Statalist, I am interested in implement a diff-in-diff (DID) analysis for the following longit…
plots for restracted cubic spline 5 knotes for linear mixed model after mutiple imputationCould any members give me some advice about how to plot a curve of blood pressure against age as the…
Creating a year variableHi All I'm creating a set of 5 date variables to calculate age of my study participants. The 5 vari…
Subscribe to:
Post Comments (Atom)
0 Response to A question on using macro variable
Post a Comment