npreg_ts
fits a timeseries model using npreg
npreg_ts(timeseries, num_ahead = 5, level = 95, regtype = "ll", bwmethod = "cv.aic", gradients = TRUE)
timeseries | the time series to forecast |
---|---|
num_ahead | the number of points at the end of the time series to forecast |
level | Confidence level for prediction intervals. |
regtype | a character string specifying which type of kernel regression
estimator to use. |
bwmethod | which method to use to select bandwidths. |
gradients | a logical value indicating that you want gradients computed and
returned in the resulting |
a data.frame of the mean forecasts, the observed values, and the lower and upper CI levels (if an error occurs, then just NA values)