Hi everyone,
I want to run the equivalent of this in xtlogit:
I tried this way but it does not work (gives error that fe invalid)
CAn you assist with how to correct this? Thank you!
I want to run the equivalent of this in xtlogit:
Code:
foreach v of varlist inad_hous hous_hmlss_svcs_act_ind hous_all_act_ind { reghdfe `v' beta1 gender2 race2 age_at_refer if ym>=`=tm(2018m1)', absorb(i.yearmonth i.hh_zip2) vce(cluster hh_zip2) sum `v' if city_pit==1 scalar cm = r(mean) outreg2 using "twowayfe_housing_all.xls", addstat("control mean", cm) }
Code:
foreach v of varlist inad_hous hous_hmlss_svcs_act_ind hous_all_act_ind { reghdfe `v' beta1 gender2 race2 age_at_refer if ym>=`=tm(2018m1)', absorb(i.yearmonth i.hh_zip2) vce(cluster hh_zip2) sum `v' if city_pit==1 scalar cm = r(mean) outreg2 using "twowayfe_housing_all.xls", addstat("control mean", cm) }
Comment