execute_mplus_scripts: Execute Mplus Input Files

View source: R/execute_mplus_scripts.R

execute_mplus_scriptsR Documentation

Execute Mplus Input Files

Description

The function executes Mplus scripts (.inp) in the background. .

Usage

execute_mplus_scripts(
  main_dir,
  cell_folders,
  est_folders,
  start_condition,
  end_condition
)

Arguments

main_dir

This is the main directory in which folders representing study conditions and data sets for the conditions are stored.

cell_folders

This object contains the names of the the folders representing the experimental conditions/cells.

est_folders

It is the folder name(s), where Mplus scripts are created and stored using the function mplus_montecarlo_analysis_grm2().

start_condition

It is a numeric starting value representing an index of the cell_folders. It can range from 1 to length(cell_folders).

end_condition

It is a numeric ending value representing an index of the cell_folders. It can range from 1 to length(cell_folders).

Examples

library(AUTTT)

main_dir2 <- "C:/Users/shh6304/Desktop/test6"
# load folders
load(paste0(main_dir2, "/folders.Rdata"))
cell_folders <- folders
est_folder <- c("ULSMV_delta")
execute_mplus_scripts(main_dir = main_dir2,
                     cell_folders = cell_folders,
                     est_folders = ULSMV_delta,
                     start_condition = 1,
                     end_condition = length(cell_folders))


Boklauth/AUTTT documentation built on Dec. 9, 2022, 7:37 a.m.