runAlignmentSim: Creates Mplus code for alignment simulations and optionally...

View source: R/runAlignment.R

runAlignmentSimR Documentation

Creates Mplus code for alignment simulations and optionally runs it and returns its summaries back to R.

Description

Creates Mplus code for alignment simulations and optionally runs it and returns its summaries back to R.

Usage

runAlignmentSim(
  file,
  sim.samples = c(100, 500, 1000),
  sim.reps = 500,
  Mplus_com = "mplus",
  path = getwd(),
  summaries = TRUE,
  run = TRUE,
  processors = 2
)

Arguments

file

Path to the fixed alignment Mplus output file.

sim.samples

Vector of integers. Group sample sizes for simulation, the length of this vector also determines a number of simulation studies. Default is 'c(100, 500, 1000)'. May take a substantial amount of time. Use NULL to avoid running simulations.

sim.reps

A number of simulated datasets in each simulation. Default is 500. Use 0 to avoid running simulations.

Mplus_com

Sometimes you don't have a direct access to Mplus, so this argument specifies what to send to a system command line. Default value is "mplus".

path

Where all the .inp, .out, and .dat files should be stored?

summaries

If the extractAlignmentSim should be run after all the Mplus work is done. Default is FALSE.


MaksimRudnev/MIE.package documentation built on March 5, 2024, 1:24 p.m.