public class FactorAnalysis
extends java.lang.Object
implements java.io.Serializable
| Modifier and Type | Class and Description |
|---|---|
static class |
FactorAnalysis.ScoringRule
These are the different ways to compute the factor analysis scores.
|
| Constructor and Description |
|---|
FactorAnalysis(Matrix data,
int nFactors)
Perform factor analysis on the data set,
using Bartlett's weighted least-squares scores, and sample correlation matrix.
|
FactorAnalysis(Matrix data,
int nFactors,
FactorAnalysis.ScoringRule rule)
Perform factor analysis on the data set with a user defined scoring rule.
|
FactorAnalysis(Matrix data,
int nFactors,
FactorAnalysis.ScoringRule rule,
Matrix S)
Perform factor analysis on the data set with a user defined scoring rule
and a user defined covariance (or correlation) matrix.
|
| Modifier and Type | Method and Description |
|---|---|
FAEstimator |
getEstimators(int maxIterations)
Get the estimators (estimated psi, loading matrix, degree of
freedom, test statistics, p-value, etc) obtained from the factor analysis,
given the maximum number of iterations.
|
FAEstimator |
getEstimators(Vector initial,
int maxIterations)
Get the estimators (estimated psi, loading matrix, degree of
freedom, test statistics, p-value, etc) obtained from the factor analysis,
given the initial psi and the maximum number of iterations.
|
int |
nFactors()
Get the number of factors.
|
int |
nObs()
Get the number of observations.
|
int |
nVariables()
Get the number of variables in the original data set.
|
ImmutableMatrix |
S()
Get the covariance (or correlation) matrix.
|
FactorAnalysis.ScoringRule |
scoringRule()
Get the scoring rule.
|
public FactorAnalysis(Matrix data, int nFactors, FactorAnalysis.ScoringRule rule, Matrix S)
data - the data setnFactors - the number of factorsrule - the scoring ruleS - a covariance (or correlation) matrix,
usually taken to be the covariance (or correlation) matrix of the data set.
Using a correlation matrix amounts to scaling the original data set.public FactorAnalysis(Matrix data, int nFactors, FactorAnalysis.ScoringRule rule)
data - the data setnFactors - the number of factorsrule - the scoring rulepublic FactorAnalysis(Matrix data, int nFactors)
data - the data setnFactors - the number of factorspublic ImmutableMatrix S()
public int nObs()
public int nVariables()
public int nFactors()
public FactorAnalysis.ScoringRule scoringRule()
public FAEstimator getEstimators(int maxIterations)
maxIterations - the maximum number of iterationspublic FAEstimator getEstimators(Vector initial, int maxIterations)
initial - the initial values of psimaxIterations - the maximum number of iterations