Hello, when I run the below loop it says:
invalid dydx() option;
age_hh_head not found in list of covariates
I'm not able to figure it out. Please help.
invalid dydx() option;
age_hh_head not found in list of covariates
I'm not able to figure it out. Please help.
Code:
local rhsvars "age_hh_head c.age_hh_head#c.age_hh_head i.headship hhsize dependency_ratio i.caste i.religion i.agri_land_ownership i.house_ownership i.employment i.employment_husband i.dist" foreach var in decision_making freedom_mobility attitude_violence access_financial_resources { eststo raw_`var': quietly fracreg logit c_vector `var' `rhsvars' if area==0 & total_int_women1==1, vce(cl dist) eststo margins_`var': margins, dydx(`var' age_hh_head headship hhsize dependency_ratio caste religion agri_land_ownership house_ownership employment employment_husband) }
Comment