No Residuals at Level 1
Posted: Fri Feb 19, 2016 4:09 am
I'm running a simulation study, and when I run the final model residuals are only estimated at level two. I generated the data in SAS as follows:
Residuals at level one generated from a normal distribution with a mean of 0 and a standard deviation of 8.94
Residuals at level two generated from a normal distribution with a mean of 0 and a standard deviation of 4.47 (resulting in 20% ICC)
Xij predictor generated from a normal distribution with a mean of 50 and a standard deviation of 10
Yij outcome generated as [100 + 1(xij-grandmean) + 0.5(schmean-grandmean) + uoj + eij], where schmean is the mean for each school (level two unit)
The predictors are grand-mean centered in the model. After reading in the data, I setup the macro as:
RESP 'yij'
IDEN 2 'schid'
IDEN 1 'id'
ADDT 'cons'
SETV 2 'cons'
SETV 1 'cons'
CENT 1
ADDT 'xij'
CENT 0
CENT 1
ADDT 'schmean'
CENT 0
When I run the model, the coefficients are estimated fairly well; however, it appears that the residuals are not estimated correctly, as (omega)e = 0.000(0.000) and (omega)u = 100.988(1.844).
I have re-worked the data generation a few times and get the same result. If anyone has any thoughts I would very much appreciate them!
Residuals at level one generated from a normal distribution with a mean of 0 and a standard deviation of 8.94
Residuals at level two generated from a normal distribution with a mean of 0 and a standard deviation of 4.47 (resulting in 20% ICC)
Xij predictor generated from a normal distribution with a mean of 50 and a standard deviation of 10
Yij outcome generated as [100 + 1(xij-grandmean) + 0.5(schmean-grandmean) + uoj + eij], where schmean is the mean for each school (level two unit)
The predictors are grand-mean centered in the model. After reading in the data, I setup the macro as:
RESP 'yij'
IDEN 2 'schid'
IDEN 1 'id'
ADDT 'cons'
SETV 2 'cons'
SETV 1 'cons'
CENT 1
ADDT 'xij'
CENT 0
CENT 1
ADDT 'schmean'
CENT 0
When I run the model, the coefficients are estimated fairly well; however, it appears that the residuals are not estimated correctly, as (omega)e = 0.000(0.000) and (omega)u = 100.988(1.844).
I have re-worked the data generation a few times and get the same result. If anyone has any thoughts I would very much appreciate them!