R/psymet.R
morie_psymet_omega.Rd
Native principal-axis approximation of McDonald's omega (total + hierarchical).
morie_psymet_omega(data, nf = 1)
Numeric matrix / data.frame of items.
Number of factors (default 1).
list with total, hier, alpha, nf, expvar.
total
hier
alpha
nf
expvar
set.seed(1) f <- rnorm(120) X <- sapply(1:12, function(j) sqrt(0.5) * f + sqrt(0.5) * rnorm(120)) colnames(X) <- paste0("i", 1:12) res <- morie_psymet_omega(X, nf = 4) c(res$total, res$hier) #> [1] 0.9452500 0.9997217