train {TSPred} | R Documentation |
Training a time series model
Description
train
is a generic function for training a time series model
based on a particular training function defined in a modeling
object.
The function invokes particular methods which
depend on the class of the first argument.
Usage
train(obj, ...)
## S3 method for class 'MLM'
train(obj, data, ...)
## S3 method for class 'linear'
train(obj, data, ...)
Arguments
obj |
An object of class |
... |
Other parameters passed to For |
data |
A list of time series to be modelled. |
Value
A list containing obj
and the trained models.
Author(s)
Rebecca Pontes Salles
See Also
Other train:
train.tspred()
Examples
data(CATS,CATS.cont)
a <- ARIMA()
model <- train(a,list(CATS[,1]))
n <- NNET(size=5, sw=SW(window_len = 5+1), proc=list(MM=MinMax()))
model <- train(n,list(CATS[,1]))
[Package TSPred version 5.1 Index]