Learn R Programming

Boom (version 0.9.15)

ar1.coefficient.prior: Normal prior for an AR1 coefficient

Description

A (possibly truncated) Gaussian prior on the autoregression coefficient in an AR1 model.

Usage

Ar1CoefficientPrior(mu = 0, sigma = 1, force.stationary = TRUE,
    force.positive = FALSE, initial.value = mu)

Arguments

mu

The mean of the prior distribution.

sigma

The standard deviation of the prior distribution.

force.stationary

Logical. If TRUE then the prior support for the AR1 coefficient will be truncated to (-1, 1).

force.positive

Logical. If TRUE then the prior for the AR1 coefficient will be truncated so that zero support is given to values less than zero.

initial.value

The initial value of the parameter being modeled in the MCMC algorithm.

Author

Steven L. Scott steve.the.bayesian@gmail.com

Details

The Ar1CoefficientPrior() syntax is preferred, as it more closely matches R's syntax for other constructors.

References

Gelman, Carlin, Stern, Rubin (2003), "Bayesian Data Analysis", Chapman and Hall.