FaClassic | R Documentation |
Performs a classical factor analysis and returns the results as an object of class "FaClassic"
(a.k.a. constructor).
FaClassic(x, ...)
## S3 method for class 'formula'
FaClassic(formula, data = NULL, factors = 2, cor = FALSE, method = "mle",
scoresMethod = "none", ...)
## Default S3 method:
FaClassic(x, factors = 2, cor = FALSE, method = c("mle", "pca", "pfa"),
scoresMethod = c("none", "regression", "Bartlett"), ...)
x |
A formula or a numeric matrix or an object that can be coerced to a numeric matrix. |
... |
Arguments passed to or from other methods. |
formula |
A formula with no response variable, referring only to numeric variables. |
data |
An optional data frame (or similar: see |
factors |
The number of factors to be fitted. |
cor |
A logical value indicating whether the calculation should use the covariance matrix ( |
method |
The method of factor analysis, one of "mle" (the default), "pca", and "pfa". |
scoresMethod |
Type of scores to produce, if any. The default is |
An S4 object of class FaClassic-class
which is a subclass of the virtual class Fa-class
.
Ying-Ying Zhang (Robert) robertzhangyying@qq.com
Zhang, Y. Y. (2013), An Object Oriented Solution for Robust Factor Analysis.
FaClassic-class
, FaCov-class
, FaRobust-class
, Fa-class
data("hbk")
hbk.x = hbk[,1:3]
## faClassicPcaReg uses the default method
faClassicPcaReg = FaClassic(x = hbk.x, factors = 2, method = "pca",
scoresMethod = "regression"); faClassicPcaReg
summary(faClassicPcaReg)
## faClassicForPcaReg uses the formula interface
## faClassicForPcaReg = faClassicPcaReg
faClassicForPcaReg = FaClassic(~., data=as.data.frame(hbk.x), factors = 2,
method = "pca", scoresMethod = "regression"); faClassicForPcaReg
summary(faClassicForPcaReg)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.