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
how to use table command to analyze multiple choice question?hi masters, I just meet a problem which is somewhat frustrated. The survey question always contain…
Question about Rank AcrossGood morning, I have 3 variables that I need to rank. There are some cells in those variables that …
RE: Obtaining robust standard errors after xtnbreg with random effectsHello! I am using negative binomial regression with random effects: xtnbreg crime unemployment pove…
Panel DataHi, I am working with panel data and want to create a dummy variable based on the median of each cro…
Parallel ado path errorDear all, I would like to use the ado parallel on a virtual machine (remote data access machine due …
Subscribe to:
Post Comments (Atom)
0 Response to How to use 'local' for grouping control variables in multiple regressions
Post a Comment