| WH.regression.two.components | R Documentation |
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).
WH.regression.two.components(data, Yvar, Xvars, simplify = FALSE, qua = 20)
data |
A |
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 |
qua |
An integer, the number of quantiles when |
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_).
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")}
WH.regression.two.components.predict,
WH.regression.GOF
model.parameters <- WH.regression.two.components(data = BLOOD, Yvar = 1, Xvars = c(2:3))
model.parameters
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.