View source: R/midas_nlpr_methods.R
predict.midas_nlpr | R Documentation |
Predicted values based on midas_nlpr
object.
## S3 method for class 'midas_nlpr'
predict(object, newdata, na.action = na.omit, ...)
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 |
... |
additional arguments, not used |
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.
a vector of predicted values
Virmantas Kvedaras, Vaidotas Zemlys
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.