Running growth models using MplusAuto... PreviousNext
Mplus Discussion > Growth Modeling of Longitudinal Data >
Message/Author
 Simon Goldberg posted on Wednesday, September 23, 2020 - 6:58 pm
I am trying to replicate Bolger and Laurenceau's (2013) linear growth curve models (Ch. 4) using the MplusAutomation package in R.

I am running this syntax:

test <- mplusObject(
TITLE = "test model;",
VARIABLE = "NAMES ARE id time time01
intimacy treatment;
WITHIN = time01;
BETWEEN = treatment;
CLUSTER = id;",
ANALYSIS = "TYPE = twolevel random;
ESTIMATOR=ml;",
MODEL = "
%WITHIN%
slope | intimacy on time01;
%BETWEEN%
intimacy slope on treatment;
intimacy with slope;",
OUTPUT = "cinterval;",
rdata = df)

res <- mplusModeler(test, modelout = "model1.inp", run = TRUE)
res

But get the following error:

Duplicate variable on NAMES list: ID

Any assistance integrating these two platforms would be most welcome.
 Bengt O. Muthen posted on Thursday, September 24, 2020 - 4:20 pm
I see that you use = instead of : for the commands Title, Variable, etc.
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: