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
How to report a constant term in a probit model?Hi all, I have a probit regression and I present the results based on marginal effects. I was told …
Mi predict basesurvI am having problems trying to get the baseline survivor function after mi predict. I am using the f…
Problem with plotting a decision tree using Stata 16's Stata/Python integrationDear all, I have a problem with the Stata/Python integration. I would like to plot a tree after usi…
Display variables with specific numberHi there, I want to know all variables containing a specific number. For example, I want to know all…
Survival anlysis with interval censorshipHi experts, I am working on survival analysis with interval censorship. In our dataset, an object a…
Subscribe to:
Post Comments (Atom)
0 Response to Xtset Identifier - FE estimation
Post a Comment