predict.pyinar: Predict Method for PY-INAR models

Description Usage Arguments Value

View source: R/pyinar.R

Description

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

Usage

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

Arguments

model

A trained object of class inheriting from "pyinar".

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.