hi everyone,
apologies if this has been answered already but I am running an OLS loop regression model, something like this:
forvalues i = 1/12 {
di "=============================="
di "Occupation `i' — Unadjusted Job Demands"
reg MH_trans i.demands_b if occupation_new == `i'
di "Occupation `i' — Adjusted Job Demands"
reg MH_trans i.demands_b i.age_cat_10 i.hgsex i.education i.country_birth ///
i.emparr_4 i.remote_b i.seifa i.HH_structure3 i.long_term_health_cond ///
if occupation_new == `i'
}
I essentially want to draw out the Beta coefficents and the 95% confidence intervals, and create one plot
apologies if this has been answered already but I am running an OLS loop regression model, something like this:
forvalues i = 1/12 {
di "=============================="
di "Occupation `i' — Unadjusted Job Demands"
reg MH_trans i.demands_b if occupation_new == `i'
di "Occupation `i' — Adjusted Job Demands"
reg MH_trans i.demands_b i.age_cat_10 i.hgsex i.education i.country_birth ///
i.emparr_4 i.remote_b i.seifa i.HH_structure3 i.long_term_health_cond ///
if occupation_new == `i'
}
I essentially want to draw out the Beta coefficents and the 95% confidence intervals, and create one plot

Comment