Message/Author |
|
|
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 |
|
|
You are not following ex6.12. Note that is uses "AT" and does not use st |.... |
|
|
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; |
|
|
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. |
|
|
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; |
|
|
BMI and age are continuous variables in my data and they are measured for 6 time points |
|
|
You show 2 Analysis commands and 3 Model commands which is confusing. |
|
Back to top |