View source: R/principal_components.R
WH.MultiplePCA | R Documentation |
(Beta version) The function implements a Principal components analysis of a set of histogram variables based on Wasserstein distance. It performs a centered (not standardized) PCA on a set of quantiles of a variable. Being a distribution a multivalued description, the analysis performs a dimensional reduction and a visualization of distributions. It is a 1d (one dimension) becuse it is considered just one histogram variable.
WH.MultiplePCA(data, list.of.vars, quantiles = 10, outl = 0)
data |
A MatH object (a matrix of distributionH). |
list.of.vars |
A list of integers, the active variables. |
quantiles |
An integer, it is the number of quantiles used in the analysis. Default=10. |
outl |
a number between 0 (default) and 0.5. For each distribution, is the amount of mass removed from the tails of the distribution. For example, if 0.1, from each distribution is cut away a left tail and a right one each containing the 0.1 of mass. |
It is an extension of WH.1d.PCA to the multiple case.
a list with the results of the PCA in the MFA format of package FactoMineR for function MFA
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.