Forgive this question if it is elementary, but I'm forgetting how to get around this specific issue:
I have a dataset with nationwide hospital-week level data for which I want to do a spatial regression. I would like to use county + year-month fixed effects, but obviously I can't use xtreg to calculate that--it'll force the lowest level to avoid repeated values, i.e., hospital-week fixed effects. Ordinarily that wouldn't be a problem (I'd use absorb and reghdfe), but I cannot do that for spatial regression unfortunately, and my RHS variables of interest are either fixed across hospitals and census tracts or are county level and change over time, so would drop out under a hospital-week fixed effect framework.
Is there another "shortcut" to model higher-level fixed effects in a xtregress command "framework"?
I have a dataset with nationwide hospital-week level data for which I want to do a spatial regression. I would like to use county + year-month fixed effects, but obviously I can't use xtreg to calculate that--it'll force the lowest level to avoid repeated values, i.e., hospital-week fixed effects. Ordinarily that wouldn't be a problem (I'd use absorb and reghdfe), but I cannot do that for spatial regression unfortunately, and my RHS variables of interest are either fixed across hospitals and census tracts or are county level and change over time, so would drop out under a hospital-week fixed effect framework.
Is there another "shortcut" to model higher-level fixed effects in a xtregress command "framework"?
Comment