Learn R Programming

psycho (version 0.0.8)

n_factors: Find Optimal Factor Number.

Description

Find optimal factor number using various solutions.

Usage

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

Examples

Run this code
# NOT RUN {
df <- dplyr::select_if(attitude, is.numeric)
results <- psycho::n_factors(df)

summary(results)
plot(results)

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

# }

Run the code above in your browser using DataLab