Prior_mu {brr}R Documentation

Prior distribution on the rate in the control group

Description

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

Usage

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

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

[Package brr version 1.0.0 Index]