Growth model with individually-varyin... PreviousNext
Mplus Discussion > Growth Modeling of Longitudinal Data >
Message/Author
  nuoshin ahanchi  posted on Monday, May 11, 2020 - 3:30 am
Dear professor Muthen
I want to characterize longitudinal body mass index (BMI) trajectories before incident of hypertention and examine the impact of level-independent BMI trajectories on hypertension risk.
I am using I am using data from the longitudinal cohort. Data includes 6 different phases .Phase 1 has a span of (1993-1996) and is following at 5 subsequent phases with three-year intervals. We included individuals with age (20 to 37 ) at baseline and we have 5 fallowups so our participates at fallowup 1 are at ( 23to 40 ) and at fallowup2 are (26to 43)and ........until fallow up 5.In fact, the interval between each phase is three years
I WANT TO USE TIMESCORE COMMAND AND I read the example6.12 on the Mplus User's Guide

DATA noushin.dat;
VARIABLE: NAMES ARE BMI1-BMI6 sex age1-age6
TSCORES = age1-age6;
ANALYSIS TYPE = RANDOM;
MODEL: i s | BMI1-BMI6 ;
st | BMI1 ON age1;
st | BMI2 ON age2;
st | BMI3 ON age3;
st | BMI4 ON age4;
st | BMI5 ON age5;
st | BMI6 ON age6;
i s st ON sex;

BUT I THINK IT IS NOT CORRECT
WOULD YOU PLEASE HELP ME
 Bengt O. Muthen posted on Monday, May 11, 2020 - 2:01 pm
You are not following ex6.12. Note that is uses "AT" and does not use st |....
  nuoshin ahanchi  posted on Monday, May 11, 2020 - 10:48 pm
Dear professor Muthen this is the example6.12 on the Mplus User's

DATA: FILE IS ex6.12.dat;
VARIABLE: NAMES ARE y1-y4 x a21-a24 a11-a14;
TSCORES = a11-a14;
ANALYSIS: TYPE = RANDOM;
MODEL: i s | y1-y4 AT a11-a14;
st | y1 ON a21;
st | y2 ON a22;
st | y3 ON a23;
st | y4 ON a24;
i s st ON x;

in my study The continuous variable(BMI) is measured in 6 times AND i have age1-
age6
you mean I should correct my syntax in
this way

VARIABLE: NAMES ARE BMI1-BMI6 sex age1-age6
TSCORES = age1-age6;
ANALYSIS TYPE = RANDOM;
MODEL: i s | BMI1-BMI6 AT age1-age6 ;
st | BMI1 ON age1;
st | BMI2 ON age2;
st | BMI3 ON age3;
st | BMI4 ON age4;
st | BMI5 ON age5;
st | BMI6 ON age6;
i s st ON sex;
 Bengt O. Muthen posted on Tuesday, May 12, 2020 - 5:41 pm
All you need is

VARIABLE: NAMES ARE BMI1-BMI6 sex age1-age6
TSCORES = age1-age6;
ANALYSIS TYPE = RANDOM;
MODEL: i s | BMI1-BMI6 AT age1-age6 ;

The st lines of ex 6.12 are for time-varying covariates which I don't think you have. If you are unclear about this, study our Short Course Topic videos and handouts for Topics 3 and 4.
  nuoshin ahanchi  posted on Wednesday, May 13, 2020 - 1:53 am
Thanks for your help
I changed the syntax to thisI would be very grateful if you could check it out
DATA: FILE IS total_final_mplus_age.dat;
VARIABLE: NAMES ARE id sex age1-age6 bmi1-bmi6;
USEVARIABLES ARE age1-age6 bmi1-bmi6;
TSCORES = age1-age6;
IDVARIABLE = id;
CLASSES = c(3);

MISSING ARE ALL (99999);
ANALYSIS:
TYPE = MIXTURE;
STARTS (1000, 40);
STITERATIONS (40);
MODEL:
%OVERALL%
i s| bmi1@0 bmi2@1 bmi3@2 bmi4@3 bmi5@4 bmi6@5;



ANALYSIS: TYPE = RANDOM;
MODEL: i s | bmi1-bmi6 AT age1-age6 ;


OUTPUT:
SAMPSTAT TECH1 TECH8 TECH11 TECH14;

PLOT:
SERIES is bmi1-bmi6(s);
TYPE = PLOT3;
  nuoshin ahanchi  posted on Wednesday, May 13, 2020 - 2:41 am
BMI and age are continuous variables in my data and they are measured for 6 time points
 Bengt O. Muthen posted on Thursday, May 14, 2020 - 3:36 pm
You show 2 Analysis commands and 3 Model commands which is confusing.
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: