factor_analysis: Factor Analysis choosing number of factors automatically

Description Usage Arguments Value Examples

View source: R/library neale.R

Description

This function runs as Factor Analysis. The first step is to calculate the number of factors automatically. Once the number of factor is choosen, the Factor Analysis is run, and both the estimated factor variables and the loadings are calculated. Missing values aren't aloud. Details of the analysis for each step are:

Usage

1
2
factor_analysis(df = NULL, n.fat = NULL, name = "fator", sep = ".",
  rotation = "varimax", scores = "regression", cut = 0.2)

Arguments

df

A dataframe containing the variables to be used in the analysis.

n.fat

A number with the number of factors to use. if NULL then the number of factors is calculated automatically.

name

A string with the name of the factor variables that will be created.

sep

A string with the character to be used separating name of the factor from the number of the factor

rotation

A string identifying the type of rotation to be performed.

scores

A string identifying the type of scores to be extracted.

cut

A number indicating the minimum size of factor loadings that should be kept. Loadings smaller then cut will be dropped.

Value

A list with two components:

Examples

1
df_factan <- factor_analysis(df=df,cut=0.2)

neale-eldash/neale documentation built on May 23, 2019, 1:29 p.m.