View source: R/execute_ML_probit.R
execute_ML_probit | R Documentation |
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.
execute_ML_probit(main_dir2, folder_index, Reps)
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. |
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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.