koyckDlmForecast: Compute forecasts for Koyck transformation of distributed lag models
Description
A function that computes forecasts for Koyck transformation of distributed lag model with one predictor.
Usage
koyckDlmForecast(model , x , h = 1)
Arguments
model
An object of class lm including the fitted model with koyck.dlm() function.
x
A vector including the new observations of independent time series. This is not restricted to ts objects.
h
The number of ahead forecasts.
Value
forecasts
A vector including forecasts.
Details
This function directly uses the model formula and estimates of model coefficients to find forecast one-by-one starting from the one-step ahead forecast.