efa | R Documentation |
Exploratory Factor Analysis
efa(data, vars, nFactorMethod = "parallel", nFactors = 1,
minEigen = 0, extraction = "minres", rotation = "oblimin",
hideLoadings = 0.3, sortLoadings = FALSE, screePlot = FALSE,
eigen = FALSE, factorCor = FALSE, factorSummary = FALSE,
modelFit = FALSE, kmo = FALSE, bartlett = FALSE,
factorScoreMethod = "Thurstone")
data |
the data as a data frame |
vars |
a vector of strings naming the variables of interest in
|
nFactorMethod |
|
nFactors |
an integer (default: 1), the number of factors in the model |
minEigen |
a number (default: 0), the minimal eigenvalue for a factor to be included in the model |
extraction |
|
rotation |
|
hideLoadings |
a number (default: 0.3), hide factor loadings below this value |
sortLoadings |
|
screePlot |
|
eigen |
|
factorCor |
|
factorSummary |
|
modelFit |
|
kmo |
|
bartlett |
|
factorScoreMethod |
|
A results object containing:
results$text | a preformatted | ||||
data('iris')
efa(iris, vars = vars(Sepal.Length, Sepal.Width, Petal.Length, Petal.Width))
#
# EXPLORATORY FACTOR ANALYSIS
#
# Factor Loadings
# ------------------------------------------------
# 1 2 Uniqueness
# ------------------------------------------------
# Sepal.Length 0.993 0.10181
# Sepal.Width 0.725 0.42199
# Petal.Length 0.933 0.00483
# Petal.Width 0.897 0.07088
# ------------------------------------------------
# Note. 'oblimin' rotation was used
#
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.