I keep encountering the insufficient obs error using xtreg even after eliminating duplicates and blanks as suggested in prior posts. I assume it is a newbie mistake.
This is the simple code I am using after importing the excel file:
global t CalDate
global id ID
sort $t $id
xtset $id $t
* Global Vars
global ylist MVBest
global xlist GrossRD GM
xtsum $id $t $ylist $xlist
xtreg $ylist $xlist
This is the simple code I am using after importing the excel file:
global t CalDate
global id ID
sort $t $id
xtset $id $t
* Global Vars
global ylist MVBest
global xlist GrossRD GM
xtsum $id $t $ylist $xlist
xtreg $ylist $xlist
Comment