Description Usage Arguments Details Value Examples
Provides linear regression based predictions from a y~x
type model
using recursive or rolling regression.
1 |
y |
a series to be predicted |
x |
a numeric or matrix of explanatory variables |
h |
The horizon for which you would like to have the prediction for (see details) |
wind |
the size of the rolling window or the initial training period if recursive is used |
rr |
recursive or rolling window? Possible values are
|
The training is done using the direct method: y_{1 : (t+h-1)} = β x_{1:(t-1)} + \varepsilon_{1:(t+h-1)} and the forecast is made at time (t+h) as \widehat{y}_{t+h} = \widehat{β} x_t.
vector of prediction values with the same dimension as the original
series. The first wind
values are NA's
1 2 3 4 5 6 7 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.