Dear all, I'm conducting a study about the score attained in a national standardized test and its relationship with other variables.
The data follow a hierarchical structure since the students are obviously clustered in different schools, therefore I decided to use a multilevel model.
The command I used is: mixed score || schid:, mle.
Now, multilevel models rely on the assumption of homoscedasticity, thus I thought to test it with a Breusch-Pagan test with the command hettest, but it says it can be done by telling me 'last estimates not found'.
This is kind of annoying because heteroscedasticity can cause some trouble in the postestimation phase.
So, I kindly ask how to test homoschedasticity in an alternative way.
Thanks to those who are going to read.
STATA OUTPUT AND COMMANDS I USED
. mixed score || schid:, mle
Performing EM optimization ...
Performing gradient-based optimization:
Iteration 0: log likelihood = -99356.128
Iteration 1: log likelihood = -99356.128
Computing standard errors ...
Mixed-effects ML regression Number of obs = 20,465
Group variable: schid Number of groups = 512
Obs per group:
min = 10
avg = 40.0
max = 103
Wald chi2(0) = .
Log likelihood = -99356.128 Prob > chi2 = .
------------------------------------------------------------------------------
score | Coefficient Std. err. z P>|z| [95% conf. interval]
-------------+----------------------------------------------------------------
_cons | 188.3269 1.177546 159.93 0.000 186.0189 190.6348
------------------------------------------------------------------------------
------------------------------------------------------------------------------
Random-effects parameters | Estimate Std. err. [95% conf. interval]
-----------------------------+------------------------------------------------
schid: Identity |
var(_cons) | 685.5449 44.43029 603.767 778.3993
-----------------------------+------------------------------------------------
var(Residual) | 885.7819 8.868542 868.5693 903.3356
------------------------------------------------------------------------------
LR test vs. linear model: chibar2(01) = 9597.74 Prob >= chibar2 = 0.0000
.
end of do-file
. do "C:\Users\alfab\AppData\Local\Temp\STD2600_000 000. tmp"
. hettest
last estimates not found
The data follow a hierarchical structure since the students are obviously clustered in different schools, therefore I decided to use a multilevel model.
The command I used is: mixed score || schid:, mle.
Now, multilevel models rely on the assumption of homoscedasticity, thus I thought to test it with a Breusch-Pagan test with the command hettest, but it says it can be done by telling me 'last estimates not found'.
This is kind of annoying because heteroscedasticity can cause some trouble in the postestimation phase.
So, I kindly ask how to test homoschedasticity in an alternative way.
Thanks to those who are going to read.
STATA OUTPUT AND COMMANDS I USED
. mixed score || schid:, mle
Performing EM optimization ...
Performing gradient-based optimization:
Iteration 0: log likelihood = -99356.128
Iteration 1: log likelihood = -99356.128
Computing standard errors ...
Mixed-effects ML regression Number of obs = 20,465
Group variable: schid Number of groups = 512
Obs per group:
min = 10
avg = 40.0
max = 103
Wald chi2(0) = .
Log likelihood = -99356.128 Prob > chi2 = .
------------------------------------------------------------------------------
score | Coefficient Std. err. z P>|z| [95% conf. interval]
-------------+----------------------------------------------------------------
_cons | 188.3269 1.177546 159.93 0.000 186.0189 190.6348
------------------------------------------------------------------------------
------------------------------------------------------------------------------
Random-effects parameters | Estimate Std. err. [95% conf. interval]
-----------------------------+------------------------------------------------
schid: Identity |
var(_cons) | 685.5449 44.43029 603.767 778.3993
-----------------------------+------------------------------------------------
var(Residual) | 885.7819 8.868542 868.5693 903.3356
------------------------------------------------------------------------------
LR test vs. linear model: chibar2(01) = 9597.74 Prob >= chibar2 = 0.0000
.
end of do-file
. do "C:\Users\alfab\AppData\Local\Temp\STD2600_000 000. tmp"
. hettest
last estimates not found
Comment