

Correlate covariates in Growth Mixtur... 

Message/Author 

Anonymous posted on Sunday, April 14, 2002  10:14 pm



I ran a growth mixture model with four timepoints data. The model was running fine with two classes. However, when I wanted to correlate the covariates, I got some error messages like the following: "The following variable in a latent class regression ON statement is not an xvariable:MALE. *** WARNING in Model command The following variable in a latent class egression ON statement is not an xvariable: EDUC" Here is my Mplus program: DATA: FILE IS BDIW0_3.dat; VARIABLE: NAMES ARE BLACK MALE AGE EDUC Y1Y4 M1M4; MISSING = ALL (9); USEVAR = M1M4 y1y4 BLACK MALE EDUC AGE2; CLASSES=C(2); DEFINE: AGE2=(AGE37.4); ANALYSIS: TYPE = mixture MISSING; ITERATIONS = 2500; MODEL: %overall% i BY M1M4@1; s BY M1@0 M2@1 M3@2 M4@3; m1 on y1; m2 on y2; m3 on y3; m4 on y4; [M1M4@0 i*25 s*1]; i with s; i@20.5 s*1; male with educ; i s on BLACK MALE EDUC AGE2; c#1 on black male educ age2; %C#1% [i*10 s*0]; i with s*6.276; OUTPUT: STANDARDIZED tech7; !tech4 sampstat; SAVEDATA: File is LCM_0.prb; Save is CPROB; Your help will be appreciated. 

bmuthen posted on Monday, April 15, 2002  2:22 pm



Short answer: Don't say "male with educ". Longer answer: These are "x variables" and you don't model them, but they are correlated by default. Mentioning them turns them into variables that have modeled relations, which is not allowed for variables influencing class membership. 

Anonymous posted on Wednesday, April 17, 2002  4:44 pm



Thank you very much for your prompt reply! I was just trying to test the covariances among the covariates in growth mixture modeling. For simplicity, I just specified one covariance: "Male with Educ," which specifies the covariance between variables Male and Educ in the model. It has no other meanings. Variables Black, Male, Educ, and Age are hypothesized to affect both the growth factors and class membership. They are also hypothesized to be correlated with each other. I am glad to know that these variables are correlated by default in growth mixture modeling. Is there any option to print the correlations as well as their significance test information in output? And is it possible to uncorrelated, in necessary, some of the x variables (e.g., x1 with x2@0;)? In addition, another set of outcome measures (y1y4) in my model were treated as timevarying predictors of the outcomes m1m4 in the model. I also want to test how y1y4 were correlated with variables Black, Male, Educ, and Age. However, it was not allowed to specify these correlations in the program while regressions were allowed. I am wondering if the variables y1y4 are also correlated with other "x variables" (e.g., Black, Male, Educ, and Age) by default? If so, is it possible to see them in output to check which correlations are significant? Thanks for your help. 

bmuthen posted on Thursday, April 18, 2002  6:08 pm



You can study the correlations among any of your variables by asking for analysis type = basic. You cannot impose zero correlations among x variables that predict class membership. For other x variables you can however have x's uncorrelated. Timevarying predictors are by default correlated with timeinvariant predictors (black, male), but not if the timevarying predictors are also dependent variables. I raise this last issue since you refer to y1y4 as outcome measures. If by that you mean that y1y4 are both timevarying covariates for m1m4 AND y1y4 are themselves predicted by other variables then y1y4 cannot be correlated but regressed on their predictors. 


I am running a 5class GMM model where one class is specified a priori as a "zero" class of nonusers of a substance. I also include predictors of class membership and ask for their variance to avoid listwide deletion. I receive an error message regarding a "reciprocal interaction." USEVAR ARE POT8 POT9 POT10 POT12 POT96 POT99 POT02 POT05 MALE FRL567 BLACK ASIAN NATIVE POSFAM57 POSSCH57 ZASFR57 FAMMJ57 ZPRMJ7 BD8; MISSING ARE ALL (99); COUNT ARE POT8 POT9 POT10 POT12 POT96 POT99 POT02 POT05 ; CLASSES = c (5); ANALYSIS: TYPE = mixture; %OVERALL% i s q POT8@0 POT9@.0625 POT10@.125 POT12@.25 POT96@.4375 POT99@.625 POT02@.8125 POT05@1; c ON MALE FRL567 BLACK ASIAN NATIVE POSFAM57 POSSCH57 ZASFR57 FAMMJ57 ZPRMJ7 BD8; POSFAM57 POSSCH57 ZASFR57 FAMMJ57 ZPRMJ7 BD8; %c#2% [i@15]; [s@15]; [q@15]; i@0 s@0 q@0; 


Please send the output and your license number to support@statmodel.com. 

Back to top 

