Linear Growth Model - Definition Vari... PreviousNext
Mplus Discussion > Growth Modeling of Longitudinal Data >
Message/Author
  nuoshin ahanchi  posted on Tuesday, May 26, 2020 - 6:38 am
Dear Linda and Bengt,
I am using Linear Growth Model with Definition Variable Approach.I want to characterize longitudinal waist circumference (WC) trajectories during adulthood . I want to plot WC over age.Waist circumference is measured at 6 times so we have WC1-WC6 and age1-age6
MY model converged and the slope variance was positive.
now I want to add the classes.
please help me with my syntax how can I ADD CLASS TO MY SYNTAX ?? and see plot

DATA: FILE= MPLUS_WAISTage18_40_2TIMES.dat;
VARIABLE: NAMES = id sex WAIST1-WAIST6 age1-age6;
MISSING ARE ALL (99999);
USEVAR = WAIST1-WAIST6;
CONSTRAINT = age1-age6 ;
ANALYSIS: TYPE = MEANSTRUCTURE;
MODEL: eta_1 BY WAIST1-WAIST6 @1;
eta_2 BY WAIST1 * (L1)
WAIST2 (L2)
WAIST3 (L3)
WAIST4 (L4)
WAIST5 (L5)
WAIST6 (L6);
eta_1 eta_2;
eta_1 WITH eta_2;
[eta_1 eta_2];
WAIST1-WAIST6 (theta);
[ WAIST1-WAIST6 @0];
MODEL CONSTRAINT:
L1 = (age1-18);
L2 = (age2-18);
L3 = (age3-18);
L4 = (age4-18);
L5 = (age5-18);
L6 = (age6-18);
OUTPUT: SAMPSTAT STANDARDIZED;
 Bengt O. Muthen posted on Tuesday, May 26, 2020 - 10:39 am
When you say "add the classes", I assume you mean Analysis Type=Mixture. If so, see examples in the UG, chapter 8.
  nuoshin ahanchi  posted on Wednesday, May 27, 2020 - 12:57 am
Dear Linda and Bengt,
Thank you for your response
yes I mean Analysis Type=Mixture and I run this syntax base on your Tips
would you mind please check my syntax because I see this message Among my output
and the Class Counts and Proportions for class 3 is 0
ONE OR MORE PARAMETERS WERE FIXED TO AVOID SINGULARITY OF THE
INFORMATION MATRIX. THE SINGULARITY IS MOST LIKELY BECAUSE THE
MODEL IS NOT IDENTIFIED, OR BECAUSE OF EMPTY CELLS IN THE JOINT
DISTRIBUTION OF THE CATEGORICAL VARIABLES IN THE MODEL.
THE FOLLOWING PARAMETERS WERE FIXED:
Parameter 15, %C#3%: [ ETA_1 ]
Parameter 16, %C#3%: [ ETA_2 ]
Parameter 21, [ C#3 ]
  nuoshin ahanchi  posted on Wednesday, May 27, 2020 - 12:57 am
This is my syntax
TITLE:
Linear Growth Model - Definition Variable Approach;
DATA:
FILE= MPLUS_WAISTage18_40_2TIMES.dat;
VARIABLE:
NAMES = id sex WAIST1-WAIST6 age1-age6;
MISSING ARE ALL (99999);
USEVAR = WAIST1-WAIST6;
CONSTRAINT = age1-age6;
CLASSES = c(4);
Savedata:
file is CLASS_WAIST.txt;
save = cprob;

ANALYSIS: TYPE = MIXTURE;

MODEL:
%OVERALL%
eta_1 BY WAIST1-WAIST6 @1;

eta_2 BY WAIST1*(L1)
WAIST2 (L2)
WAIST3 (L3)
WAIST4 (L4)
WAIST5 (L5)
WAIST6 (L6);

eta_1 (psi_11);
eta_2;

eta_1 WITH eta_2;

[eta_1 eta_2];

WAIST1-WAIST6 (theta);

[WAIST1-WAIST6@0];

%c#1%
[eta_1 eta_2];

%c#2%
[eta_1 eta_2];

%c#3%
[eta_1 eta_2];

%c#4%
[eta_1 eta_2];
MODEL CONSTRAINT:
L1 = (age1-18);
L2 = (age2-18);
L3 = (age3-18);
L4 = (age4-18);
L5 = (age5-18);
L6 = (age6-18);
OUTPUT: SAMPSTAT STANDARDIZED;
 Bengt O. Muthen posted on Wednesday, May 27, 2020 - 9:29 am
Please send your full output to Support along with your license number. We ask that postings be limited to one window.
Back to top
Add Your Message Here
Post:
Username: Posting Information:
This is a private posting area. Only registered users and moderators may post messages here.
Password:
Options: Enable HTML code in message
Automatically activate URLs in message
Action: