Dear all,
I'm running multiple regression with the same set of controls. I use "local" command so that I don't have to repeat all control variables in each regression.
My code as follows:
local controls age female educ wealth income children province_id commune_id village_id enum_id
eststo clear
probit smoking risk1 `controls' if consistent==1, r cluster(village_id)
margins, dydx(_all) post
est store r1
probit smoking risk2 `controls' if consistent==1,r cluster(village_id)
margins, dydx(_all) post
est store r2
probit smoking risk3 `controls' if consistent==1,r cluster(village_id)
margins, dydx(_all) post
est store r3
However, the results I got are the one without controls.
Can you suggest me other ways to group the same set of control variables?
Thank you very much
Related Posts with How to use 'local' for grouping control variables in multiple regressions
Multiple interaction terms in panel data modelDear Statalist, First post here! I am working with a panel of exports from Spain to 170 countries.…
Difference-in-Difference analysis after PSMDear statalist, I need your help. I am doing a job that consists in evaluating how the issue of a sp…
Interpreting values on the Y-axis in hazard functions (Survival Analysis)Hi All. The Y-axis on a survivor function is straightforward to interpret as it is denoted by 1 and…
Dot plot for two categorical variablesHello, I have the following dataset: clear input str1 item year1 year2 year3 year4 year5 "A" 1 0 0 …
Frequency Matching in a retrospective cohort: output and matching for follow up timeHello, I have a retrospective cohort of 145000 subjects. My exposed group has 526 subjects, and I wo…
Subscribe to:
Post Comments (Atom)
0 Response to How to use 'local' for grouping control variables in multiple regressions
Post a Comment