WH.MultiplePCA: Principal component analysis of a set of histogram variables

View source: R/principal_components.R

WH.MultiplePCAR Documentation

Principal component analysis of a set of histogram variables

Description

(Beta version) Principal component analysis of several histogram variables based on the L2 Wasserstein distance: a multiple factor analysis (MFA) of the quantiles of the histograms, where each variable is a group of quantiles. It extends WH.1d.PCA.

Usage

WH.MultiplePCA(data, list.of.vars, quantiles = 10, outl = 0, graph = TRUE)

Arguments

data

A MatH object.

list.of.vars

A vector of integers, the columns of the variables to analyse.

quantiles

An integer, the number of quantiles used in the analysis (default 10).

outl

A number between 0 (default) and 0.5, the probability mass removed from each tail of the distributions (e.g. 0.1 removes 10% from each tail).

graph

A logical value (default TRUE): if TRUE the plots of MFA are drawn.

Value

The results of MFA.

See Also

WH.plot_multiple_Spanish.funs, WH.plot_multiple_indivs

Examples

res <- WH.MultiplePCA(BLOOD, list.of.vars = c(1:3), graph = FALSE)

HistDAWass documentation built on Oct. 29, 2026, 5:07 p.m.