Hello,
I am currently writing my thesis on STEM gaps, my dataset contains 106'000 independent observations. I described my data as a panel data set using "xtset OBSNUM". However, when I try to run a regression for example as the following one:
xtreg lnearn c.age i.kid##i.sex
the r(2001) insufficient observations error message appears. I do have some missing values for lnearn, but dropping them doesn't change anything...
Does anyone know what I am doing wrong ?
Thanks for your help,
Elias
c.f. attachment for dataex
I am currently writing my thesis on STEM gaps, my dataset contains 106'000 independent observations. I described my data as a panel data set using "xtset OBSNUM". However, when I try to run a regression for example as the following one:
xtreg lnearn c.age i.kid##i.sex
the r(2001) insufficient observations error message appears. I do have some missing values for lnearn, but dropping them doesn't change anything...
Does anyone know what I am doing wrong ?
Thanks for your help,
Elias
c.f. attachment for dataex
Comment