n_factors: Find Optimal Factor Number.

Description Usage Arguments Value Author(s) Examples

View source: R/n_factors.R

Description

Find optimal factor number using various solutions.

Usage

1
n_factors(df, rotate = "varimax", fm = "minres", n_max = 8)

Arguments

df

The dataframe

rotate

What rotation to use c("none", "varimax", "oblimin","promax")

fm

Factoring method: "pa" for Principal Axis Factor Analysis, "minres" (default) for minimum residual (OLS) factoring, "mle" for Maximum Likelihood FA and "pc" for Principal Components

n_max

How many factors to test.

Value

output

Author(s)

Dominique Makowski

Examples

1
2
3
4
5
6
7
8
df <- dplyr::select_if(attitude, is.numeric)
results <- psycho::n_factors(df)

summary(results)
plot(results)

# See details on methods
psycho::values(results)$methods

neuropsychology/psycho.R documentation built on April 12, 2018, 7:20 p.m.