| fit_mlvar_mplus | R Documentation |
Runs the Mplus Bayesian estimator exposed by mlVAR::mlVAR(estimator = "Mplus") and converts the returned posterior summaries into idiographic's
network/tidy accessors. This is a true Mplus backend: Mplus must be installed
and discoverable by MplusAutomation::detectMplus().
fit_mlvar_mplus(
data,
vars,
id,
day = NULL,
beep = NULL,
lags = 1L,
temporal = c("fixed", "correlated", "orthogonal", "default"),
contemporaneous = c("fixed", "correlated", "orthogonal", "default"),
nCores = 1L,
scale = TRUE,
scaleWithin = FALSE,
MplusSave = TRUE,
MplusName = "mlVAR_mplus",
iterations = "(2000)",
chains = nCores,
signs,
min_obs = NULL,
subject = NULL,
workdir = NULL,
verbose = TRUE,
...
)
data |
A |
vars |
Character vector of variable column names to model. |
id |
Character string naming the person-ID column. |
day |
Character string naming the day/session column, or |
beep |
Character string naming the measurement-occasion column, or
|
lags |
Integer lag order. The Mplus backend currently supports |
temporal, contemporaneous |
Random-effect structure passed to |
nCores |
Number of Mplus processors/chains. |
scale, scaleWithin |
Standardization options passed to |
MplusSave |
Logical. Keep Mplus input/output files in the working
directory? Default |
MplusName |
File stem for Mplus input/output files. |
iterations |
Mplus |
chains |
Number of Mplus chains. Defaults to |
signs |
Optional sign matrix for contemporaneous random effects. |
min_obs |
Integer or |
subject |
Optional vector naming the exact subject(s) to analyse. |
workdir |
Directory in which Mplus files should be written/run. Default uses the current working directory. |
verbose |
Logical. Show progress from |
... |
Additional arguments passed to |
A net_mplus object, also inheriting from net_mlvar, with temporal,
contemporaneous, and between networks plus Mplus metadata in attributes.
The original mlVAR/Mplus object is available as attr(x, "mplus").
fit_mlvar()
## Not run:
fit <- fit_mlvar_mplus(
data, vars = c("A", "B", "C"), id = "id", beep = "time",
temporal = "fixed", contemporaneous = "fixed",
MplusName = "my_mplus_mlvar"
)
edges(fit)
attr(fit, "mplus")$output$summaries
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.