Skip to contents

The function fits the model using Mplus.

Usage

FitMplus(
  data,
  chains = 2L,
  iter = 40000L,
  fscores = NULL,
  plot = FALSE,
  wd = ".",
  mplus_bin = NULL,
  ncores = NULL,
  seed = NULL
)

Arguments

data

R object. Output of the GenData() function.

chains

Integer. Number of chains.

iter

Integer. Number of iterations.

fscores

Integer. Number of iterations for factor scores.

plot

Logical. If plot = TRUE, add PLOT: TYPE = PLOT3; to Mplus input file.

wd

Character string. Working directory.

mplus_bin

Character string. Path to Mplus binary. If mplus_bin = NULL, the function will try to find the appropriate binary.

ncores

Positive integer. Number of cores to use.

seed

Integer. Random seed.

See also

Other Model Fitting Functions: FitDTVAR(), FitMetaVAR(), FitNaive(), MplusInput()

Examples

if (FALSE) { # \dontrun{
seed <- 42
data <- GenData(taskid = 1, seed = seed)
fit <- FitMplus(data = data)
print(fit)
summary(fit)
} # }