WH.regression.two.components.predict | R Documentation |
Predict distributions using the results of a regression done with WH.regression.two.components
function.
WH.regression.two.components.predict(data, parameters)
data |
A MatH object (a matrix of distributionH) explantory part. |
parameters |
A named vector with the parameter from a |
a MatH
object, the predicted histograms
Irpino A, Verde R (in press 2015). Linear regression for numeric symbolic variables: a least squares approach
based on Wasserstein Distance. ADVANCES IN DATA ANALYSIS AND CLASSIFICATION, ISSN: 1862-5347, DOI:10.1007/s11634-015-0197-7
An extended version is available on arXiv repository arXiv:1202.1436v2 https://arxiv.org/abs/1202.1436v2
# do regression
model.parameters <- WH.regression.two.components(data = BLOOD, Yvar = 1, Xvars = c(2:3))
# do prediction
Predicted.BLOOD <- WH.regression.two.components.predict(data = BLOOD[, 2:3],
parameters = model.parameters)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.