| nest | R Documentation |
nest is used to identify the number of factors to retain in exploratory factor analysis.
nest(
.data,
...,
n = NULL,
nreps = 1000,
alpha = 0.05,
max.fact = TRUE,
method = "ml",
na.action = "fiml"
)
.data |
a data frame, a numeric matrix, covariance matrix or correlation matrix from which to determine the number of factors. |
... |
arguments for |
n |
the number of cases (subjects, participants, or units) if a covariance matrix is supplied in |
nreps |
the number of replications to simulate. Default is 1000. |
alpha |
a vector of type I error rates or |
max.fact |
an optional maximum number of factor to extract. Default is |
method |
a method used to compute loadings and uniquenesses. Four methods are implemented in |
na.action |
how should missing data be removed. |
The Next Eigenvalues Sufficiency Test (NEST) is an extension of parallel analysis by adding a sequential hypothesis testing procedure for every k = 1, ..., p factor until the hypothesis is not rejected.
At k = 1, NEST and parallel analysis are identical. Both use an Identity matrix as the correlation matrix. Once the first hypothesis is rejected, NEST uses a correlation matrix based on the loadings and uniquenesses of the k^{th} factorial structure. NEST then resamples the eigenvalues of this new correlation matrix. NEST stops when the k^{th} eigenvalues is within the confidence interval.
There is four method already implemented in nest to extract loadings and uniquenesses: maximum likelihood ("ml"; default), principal axis factoring ("paf"), regularized common factor analysis method = "rcfa", and minimum rank factor analysis ("mrfa"). The functions use as arguments: covmat, n, factors, and ... (supplementary arguments passed by nest). They return loadings and uniquenesses. Any other user-defined functions can be used as long as it is programmed likewise.
nest() returns an object of class nest. The functions summary and plot are used to obtain and show a summary of the results.
An object of class nest is a list containing the following components:
nfactors - The number of factors to retains (one by alpha).
cor - The supplied correlation matrix.
n - The number of cases (subjects, participants, or units).
values - The eigenvalues of the supplied correlation matrix.
alpha - The type I error rate.
method - The method used to compute loadings and uniquenesses.
nreps - The number of replications used.
prob - Probabilities of each factor.
Eig - A list of simulated eigenvalues.
plot.nest Scree plot of the eigenvalues and the simulated confidence intervals for alpha.
loadings Extract loadings. It does not overwrite stat::loadings.
summary.nest Summary statistics for the number of factors.
P.-O. Caron
Achim, A. (2017). Testing the number of required dimensions in exploratory factor analysis. The Quantitative Methods for Psychology, 13(1), 64-74. \Sexpr[results=rd]{tools:::Rd_expr_doi("10.20982/tqmp.13.1.p064")}
nest(ex_2factors, n = 100)
nest(mtcars)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.