pc-gammacount: Utility functions for the PC prior for the 'gammacount'...

Description Usage Arguments Details Value Author(s) See Also Examples

Description

Functions to evaluate, sample, compute quantiles and percentiles of the PC prior for the gammacount likelihood

Usage

1
2
3
4
5
 inla.pc.rgammacount(n, lambda = 1)
 inla.pc.dgammacount(x, lambda = 1, log = FALSE)
 inla.pc.qgammacount(p, lambda = 1)
 inla.pc.pgammacount(q, lambda = 1)
 

Arguments

n

Number of observations

lambda

The rate parameter (see Details)

x

Evaluation points

log

Logical. Return the density in natural or log-scale.

p

Vector of probabilities

q

Vector of quantiles

Details

This gives the PC prior for the gammacount likelihood, which is the PC prior for a in Gamma(a, 1) where Gamma(1, 1) is the base model.

Value

inla.pc.dgammacount gives the density, inla.pc.pgammacount gives the distribution function, inla.pc.qgammacount gives the quantile function, and inla.pc.rgammacount generates random deviates.

Author(s)

Havard Rue hrue@r-inla.org

See Also

inla.doc("pc.gammacount")

Examples

1
2
3
4
5
 x = inla.pc.rgammacount(100,  lambda = 1)
 d = inla.pc.dgammacount(x, lambda = 1)
 x = inla.pc.qgammacount(0.5, lambda = 1)
 inla.pc.pgammacount(x, lambda = 1)
 

inbo/INLA documentation built on Dec. 6, 2019, 9:51 a.m.