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 can I count the rows with specific description of a variable per firm and put 0 otherwise?I am new with stata and I would like to know how I can create two new columns that count how many me…
Repeated Time values ErrorI am trying to set up a panel structure for my data on houses and schools across a 10 year period. T…
Combinations/LikelihoodsHello, I am trying to create combinations of two variables for each observation of varA and each ob…
Identify new ID in a group of observationsHi, I have a tricky problem where I have a quarterly panel of observations for parent entities that…
command to calculate average growth rate with 5 years interval?I have a panel dataset and need to take the lag of the total population with a 5-year interval so th…
Subscribe to:
Post Comments (Atom)
0 Response to How to use 'local' for grouping control variables in multiple regressions
Post a Comment