Return all test statistics values
Arguments
- object
A
lavaan::lavaan()
fit object.- sim
(integer) Optional and used for large-scale simulations.
- Sigma2
(for internal testing only) by default calculates (weighted) sample covariance
- Hinv
(for internal testing only)
Value
Additionally, if sim
argument is provided, two columns are
appended: Whether the lavaan::lavaan()
fit has converged
and the
matrix rank of \(\Omega_2\) (useful to see if any computational issues
arose during model fit.)
Examples
fit <- lavaan::sem(txt_mod(1), gen_data_bin(1, n = 500), std.lv = TRUE,
estimator = "PML")
#> Warning: lavaan->lav_lavaan_step15_baseline():
#> estimation of the baseline model failed.
all_tests(fit)
#> # A tibble: 6 × 6
#> X2 df name pval Xi_rank S
#> <dbl> <dbl> <chr> <dbl> <int> <int>
#> 1 1.74 5 Wald 0.883 12 15
#> 2 1.74 5 WaldVCF 0.884 5 15
#> 3 0.522 3.16 WaldDiag,MM3 0.927 15 15
#> 4 0.429 3.17 Pearson,MM3 0.946 15 15
#> 5 0.961 3.89 RSS,MM3 0.907 15 15
#> 6 0.419 3.16 Multn,MM3 0.947 15 15