model_factors | R Documentation |
This function retrieves the latent factors and their variable loadings which can be used as R
objects to perform other analysis.
data |
An |
DATA |
A |
A list with the following components:
Latent_frame |
|
Latent_1 |
|
Latent_2 |
|
Latent_3 |
|
Latent_4 |
|
Latent_5 |
|
Latent_6 |
|
Latent_7 |
|
Latent_8 |
|
Latent_9 |
|
library(psych)
Data <- Quicksummary
GGn <- names(Data)
GG <- ncol(Data)
GGx <- c(paste0('x0', 1:9), paste("x", 10:ncol(Data), sep = ""))
names(Data) <- GGx
lll <- fa.parallel(Data, fm = 'minres', fa = 'fa')
dat <- fa(Data, nfactors = lll[["nfact"]], rotate = "varimax",fm="minres")
model_factors(data = dat, DATA = Data)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.