cSEM (version 0.1.0)

fit_measures: Internal: Fit measures

Description

Calculate common fit measures.

Usage

calculateCFI(.object)

calculateGFI(.object)

calculateIFI(.object)

calculateNFI(.object)

calculateNNFI(.object)

calculateRMSEA(.object)

calculateRMSTheta(.object, .model_implied = args_default()$.model_implied)

calculateSRMR( .object = NULL, .matrix1 = NULL, .matrix2 = NULL, .saturated = args_default()$.saturated, ... )

Arguments

.object

An R object of class cSEMResults resulting from a call to csem().

.model_implied

Logical. Should the RMS_theta be computed using the model-implied construct correlation matrix (TRUE) or the construct correlation matrix based on V(eta) = WSW' divided by the square root of the respective reliabilities (FALSE). Defaults to FALSE.

.matrix1

A matrix to compare.

.matrix2

A matrix to compare.

.saturated

Logical. Should a saturated structural model be used? Defaults to FALSE.

Value

A single numeric value.

Functions

  • calculateCFI: The comparative fit index (CFI).

  • calculateGFI: The goodness of fit index (GFI).

  • calculateIFI: The incremental fit index (IFI).

  • calculateNFI: The normed fit index (NFI).

  • calculateNNFI: The non-normed fit index (NNFI).

  • calculateRMSEA: The root mean square error of approximation (RMSEA).

  • calculateRMSTheta: The root mean squared residual covariance matrix of the outer model residuals (RMS theta).

  • calculateSRMR: The standardized root mean square residual (SRMR).

Details

All functions, except for calculateSRMR() are only applicable to objects inheriting class cSEMResults_default. For objects of class cSEMResults_multi and cSEMResults_2ndorder use assess().