predict.midas_nlpr {midasr}R Documentation

Predict method for non-linear parametric MIDAS regression fit

Description

Predicted values based on midas_nlpr object.

Usage

## S3 method for class 'midas_nlpr'
predict(object, newdata, na.action = na.omit, ...)

Arguments

object

midas_nlpr object

newdata

a named list containing data for mixed frequencies. If omitted, the in-sample values are used.

na.action

function determining what should be done with missing values in newdata. The most likely cause of missing values is the insufficient data for the lagged variables. The default is to omit such missing values.

...

additional arguments, not used

Details

predict.midas_nlpr produces predicted values, obtained by evaluating regression function in the frame newdata. This means that the appropriate model matrix is constructed using only the data in newdata. This makes this function not very convenient for forecasting purposes. If you want to supply the new data for forecasting horizon only use the function forecast.midas_r. Also this function produces only static predictions, if you want dynamic forecasts use the forecast.midas_r.

Value

a vector of predicted values

Author(s)

Virmantas Kvedaras, Vaidotas Zemlys


[Package midasr version 0.8 Index]