Predicts outcomes for new data using a fitted AddiVortesFit
model object.
It can return mean predictions, quantiles and optionally calculate the
Root Mean Squared Error (RMSE) if true outcomes are provided.
Arguments
- object
An object of class
AddiVortesFit
, typically the result of a call toAddiVortes()
.- newdata
A matrix of covariates for the new test set. The number of columns must match the original training data.
- type
The type of prediction required. The default
"response"
gives the mean prediction. The alternative"quantile"
returns the quantiles specified by thequantiles
argument.- quantiles
A numeric vector of probabilities with values in 0, 1 to compute for the predictions when
type = "quantile"
.- showProgress
Logical; if TRUE (default), a progress bar is shown during prediction.
- ...
Further arguments passed to or from other methods (currently unused).