Hello Stata Forum,
I am having trouble to understand my identifier and relate with fixed effects estimation. I have a database on beverages by brand, size (ml, liter, pack) and by city. So, in order to have an identifier I use:
egen pan_id = group(brand size city)
However, I would like to understand if this captures the time-invariant effects, such as city fixed effects, brand fixed effects, and size fixed effects. I am not sure because when I run an areg with dummy variables with each of this item separately I get different results, but when I absorb the pan_id variable, I get the same result so I am a bit confused what the difference is.
Thank you so much for your help. I really appreciate it.
Best,
Helena
Related Posts with Xtset Identifier - FE estimation
Can I take fixed effects( such as country id) as a continues covariate to controlHi guys, I am using a cross-section data to run 2sls regression. And there is a bunch of dummies com…
Help creating new variable using regression and fitted values, and creating a rolling average chartDear all, Hope all is well. Context: I am in the process of regressing director-turnover on the bo…
cloglog and proportional odds assumptionhello,everyone.it's the first time i write here.I hope you can understand my poor English because it…
Egen with weights?Hello, I am new to Stata and I am trying to calculate the proportion of women in different regions …
Using loop to create state-codes for statesHi, I have the following states. I want to assign a 2-digit code to each state. The dataex is given…
Subscribe to:
Post Comments (Atom)
0 Response to Xtset Identifier - FE estimation
Post a Comment