|
|
Running growth models using MplusAuto... |
|
Message/Author |
|
|
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. |
|
|
I see that you use = instead of : for the commands Title, Variable, etc. |
|
Back to top |
|
|