Message/Author |
|
|
Dear Bengt and Linda, I want to include my original ID at the new txt of SAVEDATA for further analysis. Unfortunately, my original ID were not included at the nex txt of SAVEDATA. My original ID name is SafeID and the unique ID for each participants are Safe0001, Safe0002, etc. May I know where is the problem here. Thanks in advance. My code are as follow: TITLE: Qua_2 Classes; Data: File is A:\MPLUS\Sample.dta.dat; Variable: Name are SafeID Gender Country BL FU1 FU2 FU3 FU4 FU5; Missing are all (-9999); IDVARIABLE is SafeID; USEVAR = BL FU1 FU2 FU3 FU4 FU5; CLASSES = c(2); Analysis: Type = MIXTURE; MODEL: %OVERALL% i s q| BL@0 FU1@1 FU2@2 FU3@3 FU4@4 FU5@5; i WITH s q; OUTPUT: SAMPSTAT TECH7 TECH11 TECH14; PLOT: TYPE = PLOT3; SERIES IS BL(0) FU1(1) FU2(2) FU3(3) FU4(4) FU5(5); SAVEDATA: file is newdata.txt; save = cprobabilities; |
|
|
Try using Auxiliary (see UG) to add ID. If this doesn't help, we need to see your full output to diagnose this - send to Support along with your license number. |
|
|
Dear Bengt, I have added "Auxiliary = SafeID;" under "Variable" as follows. It doesn't work and my saved dataset also doesn't include a unique ID number. My unique ID number (Just numerical numbers) ranged from 1 to 19,000. Variable: Name are SafeID Gender Country BL FU1 FU2 FU3 FU4 FU5; Missing are all (-9999); Auxiliary = SafeID; USEVAR = BL FU1 FU2 FU3 FU4 FU5; CLASSES = c(2); Analysis: Type = MIXTURE; MODEL: %OVERALL% i s q| BL@0 FU1@1 FU2@2 FU3@3 FU4@4 FU5@5; i WITH s q; OUTPUT: SAMPSTAT TECH7 TECH11 TECH14; PLOT: TYPE = PLOT3; SERIES IS BL(0) FU1(1) FU2(2) FU3(3) FU4(4) FU5(5); SAVEDATA: file is newdata.txt; save = cprobabilities; Hence, I also tried to use this command "Auxiliary = SafeID;" "IDVARIABLE = SafeID;" At that time, Error statement was appeared as follows: ****Error in VARIABLE command An AUXILIARY variable cannot be specified for the IDVARIABLE option. A new variable equal to the AUXILIARY variable should be created in DEFINE and used for the IDVARIABLE option. May I know where is the problem with this command. Thanks in advance. |
|
|
We need to see your full output to diagnose this - send to Support along with your license number. |
|
|
Thanks. Bengt. I will send it to support once I get the final model. Now, I have one additional question. When I ran linear 3 classes, quadratic 3/4 classes, and cubic 2 classes. I found the following warning. "Warning: The latent variable covariance matrix (PSI) in class 1/2/3 is not positive define. This could indicate a negative variance / residual variance for a latent variable, a correlation greater or equal to one between two latent variables, or a linear dependency among more than two latent variables. Check the TECH4 output for more information. Problem involving variable s. For your reference: my syntax is as follow: USEVAR = BL FU1 FU2 FU3 FU4 FU5; Analysis: Type = MIXTURE; MODEL: %OVERALL% i s q| BL@0 FU1@1 FU2@2 FU3@3 FU4@4 FU5@5; i WITH s q; OUTPUT: SAMPSTAT TECH7 TECH11 TECH14; I am not sure what does it mean. May I know. Many Thanks in advance. |
|
|
You need to look for the cases suggested and modify your model until the message goes away. |
|
Back to top |