Splits the file into its ALL-CAPS-headed sections (Mplus's own structural
marker – see the file header) and extracts each section's fixed-width
result tables and label/value statistics. The INPUT INSTRUCTIONS
section (Mplus's own verbatim analysis syntax) is skipped here – see
.mplus_export_syntax() for recovering it separately as a sibling .inp
file, the same way .spv_export_syntax() recovers .sps from .spv.
Value
a list of result tables, each list(analysis, title, data, syntax, table_index) – the same shape read_stat_tables() returns
for .jasp/.omv/.spv, so all formats can be processed identically
downstream. analysis is the section title (e.g. "MODEL RESULTS");
syntax is the file's own recovered INPUT INSTRUCTIONS block (the
same text on every table, since one .out file is one Mplus run).
Empty list if the file has no recoverable section.
Examples
out <- tempfile(fileext = ".out")
writeLines(c("Mplus VERSION 8.8", "", "INPUT INSTRUCTIONS", "",
" MODEL: incongruent ON congruent;", "", "MODEL RESULTS", "",
" Two-Tailed",
" Estimate S.E. Est./S.E. P-Value", "",
" INCONGRUENT ON",
" CONGRUENT 0.432 0.093 4.645 0.000", ""), out)
tables <- import_mplus_output(out)
tables[[1]]$data
#> group V1 Estimate S.E. Est./S.E. Two-Tailed P-Value
#> 1 INCONGRUENT ON CONGRUENT 0.432 0.093 4.645 0.000
