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")
all_tests(fit)
#> # A tibble: 6 × 6
#> X2 df name pval Xi_rank S
#> <dbl> <dbl> <chr> <dbl> <int> <int>
#> 1 7.26 5 Wald 0.202 12 15
#> 2 7.25 5 WaldVCF 0.203 5 15
#> 3 2.24 3.35 WaldDiag,MM3 0.588 15 15
#> 4 4.58 2.93 Pearson,MM3 0.198 15 15
#> 5 5.91 3.73 RSS,MM3 0.179 15 15
#> 6 4.62 2.94 Multn,MM3 0.195 15 15