Description Usage Arguments Value Author(s) See Also Examples
Obtains time series predictions based on a trained model and a particular prediction function
defined in a modeling
object.
1 2 3 4 5 |
object |
An object of class |
mdl |
A time series model object used for prediction. |
data |
A list of time series data input for prediction. |
n.ahead |
Integer defining the number of observations to be predicted. |
... |
Other parameters passed to |
onestep |
Should the function produce one-step ahead predictions?
If For |
A list containing object
and the produced predictions.
Rebecca Pontes Salles
Other predict:
predict.tspred()
1 2 3 4 5 6 7 8 9 | data(CATS,CATS.cont)
a <- ARIMA()
model <- train(a,list(CATS[,1]))$results[[1]]$res
pred_data <- predict(a,model,data=NULL,n.ahead=20,onestep=FALSE)
n <- NNET(size=5, sw=SW(window_len = 5+1), proc=list(MM=MinMax()))
model <- train(n,list(CATS[,1]))$results[[1]]$res
pred_data <- predict(n,model,data=list(CATS.cont[,1]),n.ahead=20)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.