Learn R Programming

semTools (version 0.4-11)

moreFitIndices: Calculate more fit indices

Description

Calculate more fit indices that are not already provided in lavaan.

Usage

moreFitIndices(object, fit.measures = "all", nPrior = 1)

Arguments

object
The lavaan model object provided after running the cfa, sem, growth, or lavaan functions.
fit.measures
Additional fit measures to be calculated. All additional fit measures are calculated by default
nPrior
The sample size on which prior is based. This argument is used to compute BIC*.

Value

    1. gammaHat
    Gamma Hat
  • adjGammaHat
  • Adjusted Gamma Hat
  • baseline.rmsea
  • RMSEA of the Baseline (Null) Model
  • aic.smallN
  • Corrected (for small sample size) Akaike Information Criterion
  • bic.priorN
  • Bayesian Information Criterion with specifying the prior sample size
  • sic
  • Stochastic Information Criterion
  • hqc
  • Hannan-Quinn Information Criterion
  • gammaHat.scaled
  • Gamma Hat using Scaled Chi-square
  • adjGammaHat.scaled
  • Adjusted Gamma Hat using Scaled Chi-square
  • baseline.rmsea.scaled
  • RMSEA of the Baseline (Null) Model using Scaled Chi-square

Details

Gamma Hat (gammaHat; West, Taylor, & Wu, 2012) is a global fit index which can be computed by $$gammaHat =\frac{p}{p + 2 \times \frac{\chi^{2}_{k} - df_{k}}{N - 1}},$$ where $p$ is the number of variables in the model, $\chi^{2}_{k}$ is the chi-square test statistic value of the target model, $df_{k}$ is the degree of freedom when fitting the target model, and $N$ is the sample size. This formula assumes equal number of indicators across groups. Adjusted Gamma Hat (adjGammaHat; West, Taylor, & Wu, 2012) is a global fit index which can be computed by $$adjGammaHat = \left(1 - \frac{K \times p \times (p + 1)}{2 \times df_{k}} \right) \times \left( 1 - gammaHat \right) ,$$ where $K$ is the number of groups (please refer to Dudgeon, 2004 for the multiple-group adjustment for agfi*). Corrected Akaike Information Criterion (aic.smallN; Burnham & Anderson, 2003) is the corrected version of aic for small sample size: $$aic.smallN = f + \frac{2k(k + 1)}{N - k - 1},$$ where $f$ is the minimized discrepancy function, which is the product of the log likelihood and -2, and $k$ is the number of parameters in the target model. Corrected Bayesian Information Criterion (bic.priorN; Kuha, 2004) is similar to bic but explicitly specifying the sample size on which the prior is based ($N_{prior}$). $$bic.priorN = f + k\log{(1 + N/N_{prior})},$$ Stochastic information criterion (sic; Preacher, 2006) is similar to aic or bic. This index will account for model complexity in the model's function form, in addition to the number of free parameters. This index will be provided only when the chi-squared value is not scaled. The sic can be computed by $$sic = \frac{1}{2}\left(f - \log{\det{I(\hat{\theta})}}\right),$$ where $I(\hat{\theta})$ is the information matrix of the parameters. Hannan-Quinn Information Criterion (hqc; Hannan & Quinn, 1979) is used for model selection similar to aic or bic. $$hqc = f + 2k\log{(\log{N})},$$ Note that if Satorra-Bentler or Yuan-Bentler's method is used, the fit indices using the scaled chi-square values are also provided. See nullRMSEA for the further details of the computation of RMSEA of the null model.

References

Burnham, K., & Anderson, D. (2003). Model selection and multimodel inference: A practical-theoretic approach. New York, NY: Springer-Verlag. Dudgeon, P. (2004). A note on extending Steiger's (1998) multiple sample RMSEA adjustment to other noncentrality parameter-based statistic. Structural Equation Modeling, 11, 305-319. Kuha, J. (2004). AIC and BIC: Comparisons of assumptions and performance. Sociological Methods Research, 33, 188-229. Preacher, K. J. (2006). Quantifying parsimony in structural equation modeling. Multivariate Behavioral Research, 43, 227-259. West, S. G., Taylor, A. B., & Wu, W. (2012). Model fit and model selection in structural equation modeling. In R. H. Hoyle (Ed.), Handbook of Structural Equation Modeling. New York: Guilford.

See Also

  • miPowerFitFor the modification indices and their power approach for model fit evaluation
  • nullRMSEAFor RMSEA of the null model

Examples

Run this code
HS.model <- ' visual  =~ x1 + x2 + x3
              textual =~ x4 + x5 + x6
              speed   =~ x7 + x8 + x9 '

fit <- cfa(HS.model, data=HolzingerSwineford1939)
moreFitIndices(fit)

fit2 <- cfa(HS.model, data=HolzingerSwineford1939, estimator="mlr")
moreFitIndices(fit2)

Run the code above in your browser using DataLab