Hi,
I would like to run a fixed-effects regression in stata for repeated cros-sections (pseudo-panel). I am trying to use the following syntax, but it's giving me an error:
xtset id_lug_birt_2 period
*repeated time values within panel
r(451);
xtreg ln_inglab_hora ethnici1 edumo2 edumo3 edufa2 edufa3 female birthreg2 birthreg3 [iw=FEX_C], fe vce (cluster id_lug_birt_2)
*must specify panelvar; use xtset
r(459);
Could anyone tell me what the mistake is.
Thank you
I would like to run a fixed-effects regression in stata for repeated cros-sections (pseudo-panel). I am trying to use the following syntax, but it's giving me an error:
xtset id_lug_birt_2 period
*repeated time values within panel
r(451);
xtreg ln_inglab_hora ethnici1 edumo2 edumo3 edufa2 edufa3 female birthreg2 birthreg3 [iw=FEX_C], fe vce (cluster id_lug_birt_2)
*must specify panelvar; use xtset
r(459);
Could anyone tell me what the mistake is.
Thank you
Comment