Learn R Programming

RegimeChange (version 0.1.1)

negbin_hazard: Negative Binomial Hazard Prior

Description

Creates a negative binomial hazard prior, which allows for more flexibility in the distribution of run lengths.

Usage

negbin_hazard(r = 1, p = 0.01)

Value

An object of class "hazard_prior"

Arguments

r

Number of successes (shape parameter)

p

Probability of success