Quantcast
Channel: Statalist
Viewing all articles
Browse latest Browse all 65033

Interting Fixed Effects Model Question

$
0
0
^^should say interacting in title
Hello,

So I am trying to run a fixed effects model regression consisting of panal data from 3 different decades, using xi and xtreg commands. Data is in long form, and I am looking at the census tract level as my unit of observation. So far I have been using county level effects interacted with time to control for broader level time varying trends, but am wanting to include tract level, time varying effects instead (interacting the tract as a categorical variable with time as a categorical variable). But, I have something like 13,000 tracts (observations) and when I try to run the regression, it says I don't have enough space, maxvariables not high enough etc. I even upgraded to STATA SE to try to handle it, but it still says I can't do it.
Code:

xi: quietly xtreg av trctpop shrblk shrhsp child shrfor ffh hsdrop ///
unemprt povrat welfare avin area propocc propsoon ///
housden popdens hsdropper msdropper nocollper somcollper collegeper perattach ///
permobile f0_2bdr f3_4bdr mvd_5 f5_yr_blt f10_yr_blt i.county i.geo2010*i.year i.aoc*i.year if year < 9, fe vce(robust)

"characteristic contents too long
The maximum value of the contents is 67,784.
characteristic contents too long
The maximum value of the contents is 67,784.
i.year _Iyear_7-9 (naturally coded; _Iyear_7 omitted)
characteristic contents too long
The maximum value of the contents is 67,784."

I feel like there should be a way to do this, maybe not actually generating the variables or something like that, any advice??

Thanks,
Julian

Viewing all articles
Browse latest Browse all 65033

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>