Fa-class: Class '"Fa"'

Fa-classR Documentation

Class "Fa"

Description

Class "Fa" is a virtual base class for all classical and robust FA classes. "Fa" searves as a base class for deriving all other classes representing the results of the classical and robust Factor Analysis methods.

Objects from the Class

A virtual Class: No objects may be created from it.

Slots

call:

Object of class "language" an unevaluated function call.

converged:

Object of class "Ulogical" a logical character indicates whether the iterations converged.

loadings:

Object of class "matrix" the matrix of variable loadings.

communality:

Object of class "Uvector" the communality.

uniquenesses:

Object of class "vector" the uniquenesses computed.

cor:

Object of class "Ulogical" A logical value indicating whether the calculation should use the covariance matrix (cor = FALSE) or the correlation matrix (cor = TRUE).

covariance:

Object of class "matrix" The robust/classical covariance matrix.

correlation:

Object of class "matrix" The robust/classical correlation matrix.

usedMatrix:

Object of class "matrix" The used matrix (running matrix). It may be the covariance or correlation matrix according to the value of cor.

reducedCorrelation:

Object of class "Umatrix" The last reduced correlation matrix. reducedCorrelation is only calculated in factorScorePfa.R.

criteria:

Object of class "Unumeric". The results of the optimization: the value of the negative log-likelihood and information on the iterations used.

factors:

Object of class "numeric" the number of factors.

dof:

Object of class "Unumeric". The number of degrees of freedom of the factor analysis model.

method:

Object of class "character". The method: one of "mle", "pca", and "pfa".

scores:

Object of class "Umatrix". If requested, a matrix of scores.

scoresMethod:

Object of class "character". The scores method: one of "none", "regression", and "Bartlett".

scoringCoef:

Object of class "Umatrix" the matrix of scoring coefficients.

meanF:

Object of class "Uvector" the column means of scores.

corF:

Object of class "Umatrix" the correlation matrix of the scores.

STATISTIC:

Object of class "Unumeric". The significance-test statistic, if it can be computed.

PVAL:

Object of class "Unumeric". The significance-test P value, if it can be computed.

n.obs:

Object of class "numeric". The number of observations.

center:

Object of class "Uvector". The center of the data.

eigenvalues:

Object of class "vector" the eigenvalues.

cov.control:

Object of class "UCovControl". Record the cov control method.

Methods

getCenter

signature(obj = "Fa"): center of the data

getEigenvalues

signature(obj = "Fa"): the eigenvalues of the covariance/correlation matrix

getFa

signature(obj = "Fa"): returns an S3 list of class fa for compatibility with the function factanal(). Thus the standard screeplot() can be used.

getLoadings

signature(obj = "Fa"): returns the matrix loadings

getQuan

signature(obj = "Fa"): returns the number of observations used in the computation, i.e., n.obs

getScores

signature(obj = "Fa"): if requested, a matrix of scores.

getSdev

signature(obj = "Fa"): returns the standard deviations of the factor analysis, i.e., the square roots of the eigenvalues of the covariance/correlation matrix

plot

signature(x = "Fa", y = "missing"): produces a scatterplot of the factor scores (if which = "factorScore") or shows the eigenvalues plot (if which = "screeplot")

predict

signature(object = "Fa"): calculates prediction using the results in object. The newdata argument is an optional data frame or matrix in which to look for variables with which to predict. If newdata is omitted, the scores are used.

print

signature(x = "Fa"): prints the results. obj = print(obj)

summary

signature(object = "Fa"): produce result summaries of an object of class "Fa".

Author(s)

Ying-Ying Zhang (Robert) robertzhangyying@qq.com

References

Bartlett, M. S. (1937) The statistical conception of mental factors. British Journal of Psychology, 28, 97–104.

Bartlett, M. S. (1938) Methods of estimating mental factors. Nature, 141, 609–610.

Joreskog, K. G. (1963) Statistical Estimation in Factor Analysis. Almqvist and Wicksell.

Lawley, D. N. and Maxwell, A. E. (1971) Factor Analysis as a Statistical Method. Second edition. Butterworths.

Thomson, G. H. (1951) The Factorial Analysis of Human Ability. London University Press.

Zhang, Y. Y. (2013), An Object Oriented Solution for Robust Factor Analysis.

Zhang, Y. Y. (2014), Robust Factor Analysis and Its Applications in the CSI 100 Index, Open Journal of Social Sciences 2(07):12-18, \Sexpr[results=rd]{tools:::Rd_expr_doi("10.4236/jss.2014.27003")}.

See Also

FaClassic-class, FaCov-class, FaRobust-class, Fa-class

Examples

showClass("Fa")

robustfa documentation built on April 16, 2023, 5:18 p.m.