<simpleError in extractValue(pattern = "^\\s*Number of clusters\\s*", section, filename, type = "int"): More than one match found for parameter: ^\s*Number of clusters\s*
sim.out>
The model runs without error in Mplus (version 8.6), and from the message it appears that it's merely having issues retrieving summary data. Anyone have any insight for this?
Code below:
model <- mplusObject(
TITLE = "model;",
MISSING = ".;",
VARIABLE = "
USEVARIABLES = machine_ID item_ID z1-z10;
CLUSTER = machine_ID item_ID;",
ANALYSIS = "
TYPE = CROSSCLASSIFIED RANDOM;
ESTIMATOR = BAYES;
FBITERATIONS = 100000;
ALGORITHM = GIBBS(RW);
PROCESSORS = 10;",
MODEL = "
%within%
m BY z1-z10;
z1 WITH z2-z10;
%between item_ID%
z1-z10; [z1-z10@0];
%between machine_ID%
z1-z10; [z1-z10];",
OUTPUT = "standardized cinterval",
PLOT = "TYPE=plot1",
rdata = sim
)
fit <- mplusModeler(model, modelout = "sim.inp", run=1L)