read_mplus_object_results: Reading results from estimated Mplus models

View source: R/reading_from_mplus.R

read_mplus_object_resultsR Documentation

Reading results from estimated Mplus models

Description

Transforms results included in estimated mplusObject into list of (lists of) data frames storing different sets of parameters.

Usage

read_mplus_object_results(
  model,
  wide = vector(mode = "character", length = 0L),
  deleteDataFile = TRUE
)

Arguments

model

an (already estimated) mplusObject

wide

optionally a character vector indicating that resulting data frames should be transformed to wide format with only one row and all the statistics in separate columns; argument gives names of the statistics - to be chosen from the set: "est", "se", "est_se", "pval" - that should be included in the resulting data frames

deleteDataFile

a logical value indicating whether to remove from disk the text file storing the data from which the model was estimated

Value

A list with elements:

  • fitIndices - one-row data frame containing model fit indices and possibly warnings an errors,

  • pathCoefs - a list with element unstandardized and possibly other elements storing standardized results; each of the elements is a data frame storing slopes and intercepts from the structural part of the model and also possibly latent trait means (if freely estimated in the model),

  • variances - a list with element unstandardized and possibly other elements storing standardized results; each of the elements is a data frame storing variable variances or residual variances,

  • covariances - a list with element unstandardized and possibly other elements storing standardized results; each of the elements is a data frame storing variable covariances,

  • slopes - a list with element unstandardized and possibly other elements storing standardized results; each of the elements is a data frame storing slope/discrimination parameters linking latent traits with their items (observed indicators),

  • thresholds - a list with element unstandardized and possibly other elements storing standardized results; each of the elements is a data frame storing threshold/step/intercept item (observed indicators of latent traits) parameters,

  • rSquared - R-squared statistics for observed dependent variables (if reported in the Mplus output),

  • reliabilities - factor scores reliabilities, available only if factor scores and their standard errors were estimated.


tzoltak/rstyles documentation built on Dec. 4, 2024, 5:16 p.m.