predict.adinar: Predict Method for AdINAR models

Description Usage Arguments Value

View source: R/adinar.R

Description

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

Usage

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

Arguments

model

A trained object of class inheriting from "adinar".

h

Number of steps ahead to be predicted.

replications

Number of replications to 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.