Hello,
there are a few topics on applying fe on cross sectional data but it seems I am not able to rebuild fe using cross sectional data:
I have a panel dataset for which I only set the panel ID whereas the entity is a firm:
If I would run a fe model using firm and year fixed effects and cluster the se on the firm level I would run the following code:
Shouldn't this be equivalent to the following code?
I get different results running both codes and I just couldn't wrap my mind around why this is the case. Is there something wrong with the code or does this seem to be a data issue?
Thank you
there are a few topics on applying fe on cross sectional data but it seems I am not able to rebuild fe using cross sectional data:
I have a panel dataset for which I only set the panel ID whereas the entity is a firm:
Code:
xtset id
Code:
xtreg DV IV i.Year, fe vce(cluster id)
Code:
reg DV IV i.Year i.id, vce(cluster id)
Thank you
Comment