View source: R/gather_mplus_output.R
gather_mplus_output | R Documentation |
The function gather standardized parameter estimates produced by Mplus. It reads the file with the extention ".out".
gather_mplus_output( main_dir, cell_folders, est_folder, cell_prefix, start_cell, end_cell, nreps, methods )
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. |
cell_prefix |
It is prefix given to an R object. The function will add a number after it to make an object name for a study condition (e.g., U1). |
start_cell |
This is an integer value specifying the start cell/condition of the study. |
end_cell |
This is an integer value specifying the final cell/condition of the study. |
nreps |
It is the total of replications for a conditions/cell. |
methods |
There are three options: "read", "gather" and "all". If "read",it will read Mplus output files and saves it as an object in its cell/condition folder. If "gather", the function will gather standardized parameter estimates by assuming that "read" method has been executed previously and the R objects are loaded from the location specified by the user. If "all", the function will first read the results from Mplus output files, save the object in its folder, and gather the standardized parameter estimates. It is suggested that you use the method "read" and "gather" later. |
est_folders |
It is the folder name(s), where Mplus scripts are created and stored using the function mplus_montecarlo_analysis_grm2(). |
It will return a table with all standardized parameter estimates obtained by a particular estimator for all replications and conditions.
library(AUTTT) main_dir2 <- "C:/Users/shh6304/Desktop/test" load(paste0(main_dir2, "/folders.Rdata")) cell_folders <- folders est_folder <- c("ULSMV_delta") cell_prefix <- "U" ulsmv_est <- gather_mplus_output(main_dir = , cell_folders = cemain_dir2ll_folders, est_folder = "ULSMV_delta", nreps = 5, cell_prefix = "U", start_cell = 1, end_cell = 12, methods = "all")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.