factor_analysis_results {anomalyDetection} | R Documentation |
factor_analysis_result
Provides easy access to factor analysis results
factor_analysis_results(data, results = 1)
data |
list output from |
results |
factor analysis results to extract. Can use either results name or number (i.e. fa_scores or 2)::
|
Returns the one of the selected results:
fa_loadings
: numerical matrix with the original factor loadings
fa_scores
: numerical matrix with the row scores for each factor
fa_loadings_rotated
: numerical matrix with the varimax rotated factor loadings
fa_scores_rotated
: numerical matrix with the row scores for each varimax rotated factor
num_factors
: numeric vector identifying the number of factors
factor_analysis
for computing the factor analysis results
# 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)