predict.LTSF.Rd
Similar to other predict methods, this function predicts fitted values from a "LTSF" object.
# S3 method for LTSF
predict(model, data = NULL, key = NULL, endog = NULL)
S3
methods
R6Class object
A "LTSF" object for prediction.
DataFrame
DataFrame containting the data.
character, optional
Name of the ID column.
Defaults to the first column if not provided.
character, optional
The endogenous variable, i.e. time series.
Defaults to the first non-ID column.
Forecasted values, structured as follows:
ID
- type INTEGER, timestamp.
VALUE
- type DOUBLE, forecast value.
Input DataFrame df.predict and predict with a "LTSF" object:
> res <- predict(lt1, data=df.predict)
Output:
> print(res$Collect)