Hi all, I am using xtmixed to run a multilevel regression model and I have two types of continuous outcomes: one for student reading score and the other one is student math score. So there is no problem with the xtmixed model using math scores as the outcome measure and my code is like the following:
then, I replaced the math outcome with reading scores and all of a sudden, stata can't give me output, instead it spits out an error. Below is the code for reading outcomes
and here is the error message
All I did is to replace the continuous variable and I don't know what is going on. Any clues for me please?
Thanks!!!
Code:
xtmixed MATH AGEYEARS AGEYRS_SQR ANYSPED || SCHID:, || CHILDID: AGEYEARS ANYSPED, mle cov(un) var pweight(C1_7FC0)
Code:
xtmixed READ AGEYEARS AGEYRS_SQR ANYSPED || SCHID:, || CHILDID: AGEYEARS ANYSPED, mle cov(un) var pweight(C1_7FC0)
Code:
Hessian is not negative semidefinite last estimates not found r(301); end of do-file r(301);
Thanks!!!
Comment