predict.ConsRegArima {ConsReg} | R Documentation |
Predict function for ConsRegArima object
Description
Obtains predictions of ConsRegArima object
Usage
## S3 method for class 'ConsRegArima'
predict(object, h = ifelse(is.null(newdata), 1,
nrow(newdata)), newdata = NULL, intervals = 90, origdata = NULL,
...)
## S3 method for class 'predict.ConsRegArima'
print(x, ...)
## S3 method for class 'predict.ConsRegArima'
plot(x, ...)
Arguments
object |
ConsRegArima object |
h |
horizont to predict |
newdata |
data frame in which to look for variables with which to predict. In case there is no regression part, this parameter could be set NULL |
intervals |
Confidence level for prediction intervals (default 90) |
origdata |
Original data (default NULL). Useful if lagged predictive variables are used in the formula |
... |
Additional params passed to the function ggplot2::labs |
x |
object of class predict.ConsRegArima |
Value
Returns an object of class predict.ConsRegArima
predict |
dataframe with the predictions |
table |
dataframe with the predictions as well as the fitted values |
intervals |
Interval level |
object |
original object |
[Package ConsReg version 0.1.0 Index]