inar: INAR model training

Description Usage Arguments Value

View source: R/inar.R

Description

Computes the posterior distribution for the INAR family using a Gibbs sampler.

Usage

1
2
3
inar(time_series, p = 1, prior = list(a_alpha = NULL, a_lambda = NULL,
  b_lambda = NULL), burn_in = 10^3, chain_length = 10^4,
  random_seed = 1761, verbose = TRUE)

Arguments

time_series

A univariate time series.

prior

List of prior hyperparameters where:

a_alpha

Hyperparameters of the thinning component.

a_lambda, b_lambda

Hyperparameters of the Gamma prior for the Poisson innovation rate.

burn_in

Number of iterations for the "burn-in" period which are discarded in the chain.

chain_length

Number of iterations of the chain.

random_seed

Value of the random seed generator.

verbose

If TRUE log info is provided.

Value

inar returns an object of class "inar".


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