predict.inar: Predict Method for INAR models

Description Usage Arguments Value

View source: R/inar.R

Description

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

Usage

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

Arguments

model

A trained object of class inheriting from "inar".

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.


bayesianfactory/BayesINAR documentation built on Dec. 16, 2019, 12:38 a.m.