Learn R Programming

kim (version 0.5.3)

parallel_analysis: Parallel analysis

Description

Conducts a parallel analysis to determine how many factors to retain in a factor analysis.

Usage

parallel_analysis(
  data = NULL,
  names_of_vars = NULL,
  iterations = NULL,
  percentile_for_eigenvalue = 95
)

Arguments

data

a data object (a data frame or a data.table)

names_of_vars

names of the variables

iterations

number of random data sets. If no input is entered, this value will be set as 30 * number of variables.

percentile_for_eigenvalue

percentile used in estimating bias (default = 95).

Details

The following package(s) must be installed prior to running the function: Package 'paran' v1.5.2 (or possibly a higher version) by Alexis Dinno (2018), https://cran.r-project.org/package=paran

Examples

Run this code
# \donttest{
parallel_analysis(
  data = mtcars, names_of_vars = c("disp", "hp", "drat"))
# parallel_analysis(
# data = mtcars, names_of_vars = c("carb", "vs", "gear", "am"))
# }

Run the code above in your browser using DataLab