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 1.76 5 Wald 0.882 14 15
#> 2 1.75 5 WaldVCF 0.882 5 15
#> 3 1.15 3.59 WaldDiag,MM3 0.845 15 15
#> 4 1.61 3.66 Pearson,MM3 0.762 15 15
#> 5 1.71 4.28 RSS,MM3 0.822 15 15
#> 6 1.72 5.00 Multn,MM3 0.886 15 15