Prior_mu: Prior distribution on the rate in the control group

Description Usage Arguments Details Value Note Examples

Description

Density, distribution function, quantile function and random generation for the prior distribution on the rate in the control group.

Usage

1
2
3
4
5
6
7
8
9
dprior_mu(mu, a, b, ...)

pprior_mu(q, a, b, ...)

qprior_mu(p, a, b, ...)

rprior_mu(n, a, b, ...)

sprior_mu(a, b, ...)

Arguments

mu,q

vector of quantiles

a,b

non-negative shape parameter and rate parameter

...

other arguments passed to GammaDist or to summary_gamma

p

vector of probabilities

n

number of observations to be simulated

Details

The prior distribution on the rate μ is the Gamma distribution with shape parameter a and rate parameter b

Value

dprior_mu gives the density, pprior_mu the distribution function, qprior_mu the quantile function, and rprior_mu samples from the distribution.

Note

Prior_mu is a generic name for the functions documented.

Examples

1
2
curve(dprior_mu(x, 2, 2), from=0, to=3)
sprior_mu(2, 2, output="pandoc")

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