fc_lm: Linear model forecast wrapper

Description Usage Arguments Value Examples

Description

Linear model forecast wrapper

Usage

1
fc_lm(x, h, level = 95, onlyfc = TRUE, xreg = NULL, newxreg = NULL, ...)

Arguments

x

'ts' data

h

forecast horizon

level

confidence level. Default is 0.95

onlyfc

if TRUE return only forecasts, otherwise returns a full forecast classed object

xreg

in liner model with covariates it's must be provide

newxreg

in liner model with covariates it's must be provide for forecasting the covariates

...

extra args, if needed.

Value

forecasts from ts data or an object of class 'forecast'

Examples

1
2
3
4
fit <- fc_lm(AirPassengers, h=10, onlyfc = FALSE)
plot(fit)
Mresid(fit)
tsSummary(fit)

evandeilton/cvforecast documentation built on May 16, 2019, 9:36 a.m.