BSkyFactorAnalysis: Factor Analysis

BSkyFactorAnalysisR Documentation

Factor Analysis

Description

Perform maximum-likelihood factor analysis on a covariance matrix or data matrix and generates a screeplot. Calls the function factanal in the stats package.

Usage

BSkyFactorAnalysis(
  vars,
  autoextraction = TRUE,
  factors = 1,
  rotation = "varimax",
  saveScores = FALSE,
  screeplot = FALSE,
  scores = "none",
  prefixForScores = "",
  dataset,
  excludeEnvPrefix = FALSE
)

Arguments

vars

One or more numeric variables to extract factors from.

autoextraction

Automatically determine the number factors or extract specific numbers of factors.

rotation

determine the type of rotation and takes one of the values (none, quartimax, geominT, varimax, oblimin, simplimax, promax, geominQ and bentlerQ)

saveScores

saves the factor scores in the dataset

screeplot

If TRUE generates a screeplot.

dataset

The dataset from which the 'vars' have been picked.


BlueSkyStatistics/BlueSky documentation built on Jan. 29, 2025, 4:15 p.m.