GIBDist: Gamma-Inverse Beta distribution

Description Usage Arguments Details Value Note Examples

Description

Density and random generation for the Gamma-Inverse Beta distribution with shape parameters a, alpha, beta and rate parameter rho.

Usage

1
2
3
4
5
dGIB(x, a, alpha, beta, rho)

rGIB(n, a, alpha, beta, rho)

summary_GIB(a, alpha, beta, rho, output = "list", ...)

Arguments

x

vector of quantiles

a

non-negative shape parameter of the Gamma distribution

alpha,beta

non-negative shape parameters of the mixing Beta distribution

rho

rate parameter

n

number of observations to be simulated

output

type of the summary_GIB output: "list" to return a list, "pandoc" to print a table

...

arguments passed to pander.data.frame

Details

This is the mixture distribution obtained by sampling a value b from a Beta distribution with shape parameters β, α and then sampling a Gamma distribution with shape a and rate ρ/b.

Value

dGIB gives the density, rGIB samples from the distribution, and summary_GIB returns a summary of the distribution.

Note

GIBDist is a generic name for the functions documented.

Examples

1
2
curve(dGIB(x, 3, 4, 2, 2.5), from=0, to=3)
summary_GIB(3, 4, 2, 2.5, output="pandoc", style="grid")

brr documentation built on May 2, 2019, 1:04 a.m.