- x
A univariate xts
object of any
zoo
index class, such as Date
,
yearmon
, or yearqtr
.
For converting objects of type timeSeries
, ts
, irts
,
fts
, matrix
, data.frame
, or zoo
to xts
, please see as.xts
.
- h
An integer
, defining the lookahead period. Defaults to
h = 8
, suggested by Hamilton. The default assumes economic data of
quarterly periodicity with a lookahead period of 2 years. This function is
not limited by the default parameter, and econometricians may change it as required.
- p
An integer
, indicating the number of lags. A default of
p = 4
, suggested by Hamilton, assumes data is of quarterly periodicity.
If data is monthly, one may choose p = 12
or aggregate the series
to quarterly and maintain the default. Econometricians should use this
parameter to accommodate the seasonality of their data.
- ...
Additional arguments passed to glm
.