Mplus_fit {holland} | R Documentation |
Reading some fit indices from Mplus output
Description
This function reads the fit-indices "ChiSq","df","p","CFI","RMSEA","SRMR" and returns them as a list and writes them (optionally) as a csv file into the current workspace directory.
Usage
Mplus_fit(target, w = FALSE, ...)
Arguments
target |
name of the Mplus output file - e.g. target = "MyMplus.out" for an Mplus output file in the current workspace directory. |
w |
logical - write fit coefficients as csv table? - default: |
... |
additional parameters passed through |
Details
no details
Value
a list containing coefficients for model fit and a '.csv' file in the current workspace directory.
Examples
## first prepare an Mplus syntax
data(example2) # loading fictional example correlation matrix
Mplus_esyn(N = 300, Cor = example2)
## !!! now first open the data example2.inp with Mplus and click run !!!
##### not run until Mplus is installed on your system #####
## Not run: Mplus_fit("example2.out")
################################################################
### clean up work directory
file.remove("example2.inp") # remove generated Mplus syntax from work dir.
file.remove("example2.dat") # remove generated cor. data from work dir.
[Package holland version 0.1.2-1 Index]