execute_ML_probit: Execute Mplus Input Files Using Estimator Maximum Likelihood...

View source: R/execute_ML_probit.R

execute_ML_probitR Documentation

Execute Mplus Input Files Using Estimator Maximum Likelihood with the Probit Model

Description

The function executes Mplus scripts (.inp) in the background, and the estimator is maximum likelihood with the probit model. The other data required are "folders.Rdata", which contains the study conditions and is created during the data generation process; "study_cell.Rdata", which contains the data sets of all replications for each condition.

Usage

execute_ML_probit(main_dir2, folder_index, Reps)

Arguments

main_dir2

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

folder_index

This takes one or more numeric values and contain the index numbers of the study conditions.

Reps

This is the replications. It can be specified as, for example, C(1, 2, 3, 4, 5) or 1:5. The function will develop and execute the scripts one by one based on the replication numbers.

Examples

library(AUTTT)

main_dir2 <- "C:/Users/shh6304/Desktop/test6"
# load folders
load(paste0(main_dir2, "/folders.Rdata"))
# study_cell.Rdata will be searched in each study condition folder
# once it finds the condition folders.
est_folder <- c("ULSMV_delta")
execute_ML_probit(main_dir2 = main_dir2,
                 nReps = 500)

main_dir2 <- "C:/Users/shh6304/Desktop/t8"
execute_ML_probit(main_dir2 = "C:/Users/shh6304/Desktop/t8",
                  folder_index = C(1,2),
                   nReps = 500)

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