plotPredVsObs {HistDAWass} | R Documentation |
A function for comparing observed vs predicted histograms
Description
This function allows the representation of observed vs predicted histograms. It can be used as a tool for interpreting preditive methods (for exampe, the regression of histogrma data)
Usage
plotPredVsObs(PRED, OBS, type = "HISTO", ncolu = 2)
Arguments
PRED |
a |
OBS |
a |
type |
a string. "HISTO" (default), if ones want to compare histograms |
ncolu |
number of columns in which is arranged the plot, default is 2. If you have a lot of data consider to choose higher values. |
Value
A plot with compared histogram-valued data.
Examples
## do a regression
pars <- WH.regression.two.components(BLOOD, Yvar = 1, Xvars = c(2:3))
## predict data
PRED <- WH.regression.two.components.predict(data = BLOOD[, 2:3], parameters = pars)
## define observed data
## Not run:
OBS <- BLOOD[, 1]
plotPredVsObs(PRED, OBS, "HISTO")
plotPredVsObs(PRED, OBS, "CDF")
plotPredVsObs(PRED, OBS, "DENS")
## End(Not run)
[Package HistDAWass version 1.0.8 Index]