Description Usage Arguments References See Also Examples
View source: R/predict.lbvar.R
Functions for lbvar objects
| 1 2 3 4 5 6 7 | 
| object | lbvar object generated by the function lbvar. | 
| h | Forecasting horizon. If h=0 returns the fitted values. | 
| newdata | Exogenous variables to compute the predictions. If the model has exogenous controls (xreg) newdata must be supplied. | 
| ... | Arguments for other methods. | 
| type | equation to extract coefficients by equation and block to extract blocks like cons. lags and xreg coefficients. | 
| M | Number of simulations for density forecasts. | 
Garcia, Medeiros and Vasconcelos (2017).
| 1 2 3 4 5 6 7 8 9 10 11 12 | ## == This example uses the Brazilian inflation data from
#Garcia, Medeiros and Vasconcelos (2017) == ##
data("BRinf")
Y=BRinf[,1:59]# remove expectation variables
modelB=lbvar(Y,p=4)
predict(modelB,h=10)
# take a look at the coefficients
eq=coef(modelB,type="equation")
block=coef(modelB,type="block")
block$Lag1
 | 
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.