predict.dpinar: Predict Method for DP-INAR models

Description Usage Arguments Value

View source: R/dpinar.R

Description

Obtains predictions and predictive distribution from a trained DP-INAR model object.

Usage

1
2
## S3 method for class 'dpinar'
predict(model, h = 1, replications = 10^3)

Arguments

model

A trained object of class inheriting from "dpinar".

h

Number of steps ahead to be predicted.

replications

Number of replications for each posterior sample.

Value

A list with the following elements:

est

The h-steps-ahead prediction.

distr

The h-steps-ahead predictive distribution.


heltongraziadei/BINAR documentation built on Nov. 5, 2019, 2:18 p.m.