facto_pca {booklet} | R Documentation |
Perform PCA with FactoMineR's style
Description
Return PCA results with FactoMineR's style
Usage
facto_pca(
X,
ncp = 5,
scale.unit = TRUE,
ind_sup = NULL,
quanti_sup = NULL,
weighted_col = NULL
)
Arguments
X |
a data frame with n rows (individuals) and p columns (numeric variables) |
ncp |
an integer, the number of components to keep (value set by default) |
scale.unit |
a boolean, if TRUE (value set by default) then data are scaled to unit variance |
ind_sup |
a vector indicating the indexes of the supplementary individuals |
quanti_sup |
a vector indicating the indexes of the quantitative supplementary variables |
weighted_col |
column weights |
Value
A list containing results of FactoMineR's principal components analysis (PCA).
Examples
library(booklet)
res <- facto_pca(iris[, -5], ncp = 2, ind_sup = 1, quanti_sup = 1)
[Package booklet version 1.0.0 Index]