Description Usage Arguments Value Author(s) See Also Examples
View source: R/extractSaveData.R
This function reads the SAVEDATA INFORMATION section from an Mplus output file that used the SAVEDATA command, and it returns a list with the filename, variable names, variable formats, and variable widths of the SAVEDATA file. If present, the function also parses information about the Bayesian Parameters (BPARAMETERS) file.
1 | getSavedata_Fileinfo(outfile)
|
outfile |
required. The name of the Mplus output file to read. Can be an absolute or relative path.
If |
Returns a list of SAVEDATA file information that includes:
fileName |
The name of the file containing the analysis dataset created by the Mplus SAVEDATA command. |
fileVarNames |
A character vector containing the names of variables in the dataset. |
fileVarFormats |
A character vector containing the Fortran-style formats of variables in the dataset. |
fileVarWidths |
A numeric vector containing the widths of variables in the dataset (which is stored in fixed-width format). |
bayesFile |
The name of the BPARAMETERS file containing draws from the posterior distribution created by the Mplus SAVEDATA BPARAMETERS command. |
bayesVarNames |
A character vector containing the names of variables in the BPARAMETERS dataset. |
Michael Hallquist
1 2 3 4 | ## Not run:
fileInfo <- getSavedata_Fileinfo("C:/Program Files/Mplus/Test Output.out")
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.