get_sem_fit | R Documentation |
Obtain lavaan model fit indices
get_sem_fit(model, round = 6)
model |
Fitted lavaan model. |
round |
Rounding for the numeric output. |
Fit indices and model statistics.
set.seed(21417) x <- rnorm(1000) d <- data.frame( x1 = sqrt(.50) * x + sqrt(1 - .50) * rnorm(1000), x2 = sqrt(.50) * x + sqrt(1 - .50) * rnorm(1000), x3 = sqrt(.50) * x + sqrt(1 - .50) * rnorm(1000), x4 = sqrt(.50) * x + sqrt(1 - .50) * rnorm(1000) ) mod <- "X=~x1+x2+x3+x4" fit1 <- lavaan::cfa(mod, d) get_sem_fit(fit1, round = 3)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.