Description Usage Arguments Value References Examples
This function transforms and scales a dataset with numerical and/or categorical variables. Numerical variables are scaled to zero mean and unit variance. Categorical variables are first transformed into dummy variables according to their levels, and second centered and normalized with respect to the square roots of the relative frequencies of the levels. The complete procedure is described in Chavent et al. (2014).
1 |
X |
a matrix or a dataframe with numerical and/or categorical variables. Categorical variables must be given as factors. |
renamelevel |
a boolean. If TRUE (default value), the levels of the categorical variables
are renamed as |
X |
a data frame or a matrix. The input data |
Z |
a data frame. The transformed data matrix with scaled numerical variables and scaled dummy variables coding for the levels. |
index |
a vector of integers. Contains an implicit partitioning of the transformed
variables: each scaled numerical variable represents a group, all scaled dummy variables
summarizing the levels of a categorical variable represent a group. |
M. Chavent, V. Kuentz-Simonet, A. Labenne and J. Saracco (2014). Multivariate analysis of mixed data: the PCAmixdata R package, arXiv:1411.4911.
1 2 3 4 5 6 7 8 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.