lead.matrix | R Documentation |
Uses a leading indicator time series to create a leading indicator matrix that can be used as input to the esti function.
lead.matrix(xvec, lagvec, number.forecasts = 24)
xvec |
A leading indicator time series |
lagvec |
A vector of integers indicating the lags with non-zzero coefficients in the dynamic regression model. |
number.forecasts |
The number of forecasts that will be requested (the default is 24). |
A time series matrix, suitable to use as input for a dynamic regression model using the esti function.
gasrx.lead.matrix <- lead.matrix(gasrx.tsd, lagvec=c(3, 4, 5, 6)) est.out <- esti(gasry.tsd, model=model.pdq(p=3), xreg.in=gasrx.lead.matrix)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.