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
Calculate number of days from selected date to the end of quarterDear All, If I have a table as below: ClinicID Visited Date 001 23Feb2021 002 15Apr2021 00…
Mediation problemHi all,I was investigating whether political identity would affect income through social networks, s…
Is Mata at par with C in terms of speed?Since there is no discussion on this topic, I am posting this question here. Is Mata at par with C i…
What is the prediction model to predict the probability?In a paper, Dasgupta, 2019 used Difference-in-Difference approach to see whether anticollusion laws …
How to get sum of categoryHi everyone, I use id and type to generate dummy_1~dummy_5 My data looks like this: id type dumm…
Subscribe to:
Post Comments (Atom)
0 Response to How to use 'local' for grouping control variables in multiple regressions
Post a Comment