factor_analysis_results: Easy Access to Factor Analysis Results

Description Usage Arguments Value See Also Examples

View source: R/factor_analysis.R

Description

factor_analysis_result Provides easy access to factor analysis results

Usage

1

Arguments

data

list output from factor_analysis

results

factor analysis results to extract. Can use either results name or number (i.e. fa_scores or 2)::

  1. fa_loadings (default)

  2. fa_scores

  3. fa_loadings_rotated

  4. fa_scores_rotated

  5. num_factors

Value

Returns the one of the selected results:

  1. fa_loadings: numerical matrix with the original factor loadings

  2. fa_scores: numerical matrix with the row scores for each factor

  3. fa_loadings_rotated: numerical matrix with the varimax rotated factor loadings

  4. fa_scores_rotated: numerical matrix with the row scores for each varimax rotated factor

  5. num_factors: numeric vector identifying the number of factors

See Also

factor_analysis for computing the factor analysis results

Examples

1
2
3
4
5
6
7
8
9
# An efficient means for getting factor analysis results
x <- matrix(rnorm(200*3), ncol = 10)
N <- nrow(x)
p <- ncol(x)

x %>%
  horns_curve() %>%
  factor_analysis(x, hc_points = .) %>%
  factor_analysis_results(fa_scores_rotated)

AFIT-R/anomalyDetection documentation built on Oct. 14, 2019, 5:24 p.m.