Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

fit_measures

Model fit measures


Description

Calculate fit measures.

Usage

calculateChiSquare(.object)

calculateChiSquareDf(.object)

calculateCFI(.object)

calculateGFI(.object, .type_gfi = c("ML", "GLS", "ULS"), ...)

calculateCN(.object, .alpha = 0.05, ...)

calculateIFI(.object)

calculateNFI(.object)

calculateNNFI(.object)

calculateRMSEA(.object)

calculateRMSTheta(.object)

calculateSRMR(
  .object = NULL,
  .matrix1 = NULL,
  .matrix2 = NULL,
  .saturated = FALSE,
  ...
)

Arguments

.object

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

.type_gfi

Character string. Which fitting function should the GFI be based on? One of "ML" for the maximum likelihood fitting function, "GLS" for the generalized least squares fitting function or "ULS" for the unweighted least squares fitting function (same as the squared Euclidian distance). Defaults to "ML".

...

Ignored.

.alpha

An integer or a numeric vector of significance levels. Defaults to 0.05.

.matrix1

A matrix to compare.

.matrix2

A matrix to compare.

.saturated

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

Details

See the Fit indices section of the cSEM website for details on the implementation.

Value

A single numeric value.

Functions

  • calculateChiSquare: The chi square statistic.

  • calculateChiSquareDf: The ChiSquare statistic divided by its degrees of freedom.

  • calculateCFI: The comparative fit index (CFI).

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

  • calculateCN: The Hoelter index alias Hoelter's (critical) N (CN).

  • calculateIFI: The incremental fit index (IFI).

  • calculateNFI: The normed fit index (NFI).

  • calculateNNFI: The non-normed fit index (NNFI). Also called the Tucker-Lewis index (TLI).

  • 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).


cSEM

Composite-Based Structural Equation Modeling

v0.4.0
GPL-3
Authors
Manuel E. Rademaker [aut, cre] (<https://orcid.org/0000-0002-8902-3561>), Florian Schuberth [aut] (<https://orcid.org/0000-0002-2110-9086>), Tamara Schamberger [ctb] (<https://orcid.org/0000-0002-7845-784X>), Michael Klesel [ctb] (<https://orcid.org/0000-0002-2884-1819>), Theo K. Dijkstra [ctb], Jörg Henseler [ctb] (<https://orcid.org/0000-0002-9736-3048>)
Initial release
2021-04-09

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.