I'm running multilevel model and attempting to specify error structure. The error message indicates possible duplicates at lowest level.
Code Used:
xtmixed sales int rdint emp year || reg: ||seg2: ind3 ind1, residuals(ar 1, by(firm) t(year))
repeated time values within lowest-level panels
r(459);
I've checked for duplicates using the following.
quietly by firm year: gen dup = cond(_N==1,0,_n)
tab dup
dup | Freq. Percent Cum.
------------+-----------------------------------
0 | 7,112 100.00 100.00
------------+-----------------------------------
Total | 7,112 100.00
It doesn't seem that there are repeated time values at the lowest level. Does anyone have a suggestion?
With best regards,
Kurt
Code Used:
xtmixed sales int rdint emp year || reg: ||seg2: ind3 ind1, residuals(ar 1, by(firm) t(year))
repeated time values within lowest-level panels
r(459);
I've checked for duplicates using the following.
quietly by firm year: gen dup = cond(_N==1,0,_n)
tab dup
dup | Freq. Percent Cum.
------------+-----------------------------------
0 | 7,112 100.00 100.00
------------+-----------------------------------
Total | 7,112 100.00
It doesn't seem that there are repeated time values at the lowest level. Does anyone have a suggestion?
With best regards,
Kurt
Comment