WH.regression.two.components: Two-component regression of histogram variables

View source: R/regression.R

WH.regression.two.componentsR Documentation

Two-component regression of histogram variables

Description

Linear regression of a histogram variable on a set of histogram variables, based on the decomposition of the L2 Wasserstein distance into a component for the means and a component for the centred distributions. The parameters are estimated by least squares (non-negative least squares for the centred component).

Usage

WH.regression.two.components(data, Yvar, Xvars, simplify = FALSE, qua = 20)

Arguments

data

A MatH object.

Yvar

An integer, the column of the dependent variable.

Xvars

A vector of integers, the columns of the explanatory variables.

simplify

A logical value (default FALSE). If TRUE, the histograms are approximated by qua equally spaced quantiles, for faster computations.

qua

An integer, the number of quantiles when simplify = TRUE (default 20).

Value

A named vector with the estimated parameters: the intercept and the coefficients of the means (prefix AV_) and the coefficients of the centred distributions (prefix CEN_).

References

Irpino, A., Verde, R. (2015). Linear regression for numeric symbolic variables: a least squares approach based on Wasserstein Distance. Advances in Data Analysis and Classification, 9, 81-106. \Sexpr[results=rd]{tools:::Rd_expr_doi("10.1007/s11634-015-0197-7")}

See Also

WH.regression.two.components.predict, WH.regression.GOF

Examples

model.parameters <- WH.regression.two.components(data = BLOOD, Yvar = 1, Xvars = c(2:3))
model.parameters

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