predict {BETS} | R Documentation |
Get the predicted values of a model and visualize it
Description
This function is built upon forecast. Besides the model predictions, it returns an accuracy measure table (calculated by the accuracy function) and a graph showing the original series, the predicted values and the actual values.
Usage
predict(..., actual = NULL, main = "", ylab = "", xlim = NULL,
style = "dygraphs", unnorm = NULL, legend.pos = "topright", knit = F)
Arguments
... |
arguments passed on to forecast. If the model is a neural network, these arguments will be passed on to grnn.test. |
actual |
A |
main |
A |
ylab |
A |
xlim |
A |
style |
A |
unnorm |
A |
legend.pos |
A |
knit |
A |
Value
Besides the prediction plot, this function returns an object whose fields are:
accuracy
: An object returned by accuracy. It is a table containing several accuracy measurespredictions
: Anumeric vector
containing the predicted values.
Author(s)
Talitha Speranza talitha.speranza@fgv.br