Learn R Programming

brr (version 1.0.0)

GIBDist: Gamma-Inverse Beta distribution

Description

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

Usage

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

Value

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

Details

This is the mixture distribution obtained by sampling a value $b$ from a Beta distribution with shape parameters $\beta$, $\alpha$ and then sampling a Gamma distribution with shape $a$ and rate $\rho/b$.

Examples

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

Run the code above in your browser using DataLab