Omega | R Documentation |
The function omega coefficient, which is a measure of measurement internal consistency based on factor analysis, based on the covariance or correlation matrix. psych::fa
is used to preform factor analysis.
Omega( C, fm = "ml", nfactors = 1, covar = TRUE, usePsych = TRUE, returnFaRes = FALSE, rotation = "none", ... )
C |
Covariance or correlation matrix. |
fm |
Factor analysis method, maximum likelihood ( |
nfactors |
Number of factors, 1 by default, |
covar |
Should the input |
usePsych |
Should |
returnFaRes |
Should results of factor analysis be returned in addition to the computed omega coefficient. |
rotation |
Rotation to be used in factor analysis. Defaults to "none", as it does not influence the Omega coefficient. Used only if |
... |
Additional parameters to |
By default just the value of the omega coefficient. If returnFaRes
is TRUE
, then a list with two elements:
omega
- The value of the omega coefficient.
faRes
- The result of factor analysis.
Ales Ziberna
Omega(C=cor(mtcars[,1:6]),nfactors=1) Omega(C=cor(mtcars[,1:6]),nfactors=1,returnFaRes=TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.