FactoInvestigate R Package: Automatic Reports and Interpretation of Principal Component Analyses
kassambara |
|
8386
| Comments (3)
| R packages
|
R,
R packages,
FactoMineR,
Principal Component Analysis
FactoInvestigate makes it easy to generate an automatic report and interpretation of FactoMineR - based principal compoent analyses. The main function provided by the package is the function Investigate(), which can be used to create either a Word, PDF or a HTML report.
The report include the:
- detection of existing outliers,
- identification of the major first principal components,
- plots,
- description of dimensions
Install and load Required packages
install.packages("FactoMineR", "FactoInvestigate")
Demo examples
# Load Packages
library("FactoMineR")
library("FactoInvestigate")
# Principal component analyses
data(decathlon)
res.pca <- PCA(decathlon, quanti.sup = 11:12, quali.sup = 13, graph = FALSE)
Investigate(res.pca, file = "PCA.Rmd", document = "pdf_document",
parallel = TRUE)
# Correpondance analysis
data(children)
res.ca = CA(children, row.sup = 15:18, col.sup = 6:8, graph = FALSE)
Investigate(res.ca, file = "CA.Rmd", document = "html_document")
# Multiple correspondance analysis
data(tea)
res.mca = MCA(tea, quanti.sup = 19,quali.sup = 20:36, graph = FALSE)
Investigate(res.mca, file = "MCA.Rmd", document = c("word_document", "pdf_document"))
The output looks like this: