Posterior_lambda {brr}R Documentation

Posterior distribution on the incidence rate in the treated group

Description

Density and random generation for the posterior distribution on the rate in the treated group. The distribution function and the quantile function are not available.

Usage

dpost_lambda(lambda, a, c, d, S, x, y, ...)

rpost_lambda(n, a, c, d, S, x, y)

spost_lambda(a, c, d, S, x, y, ...)

Arguments

lambda

vector of quantiles

a

non-negative shape parameter of the Gamma prior distribution on \mu

c, d

non-negative shape parameters of the prior distribution on \phi

S

sample size in treated group

x, y

counts in the treated group and control group

...

other arguments passed to GIBDist

n

number of observations to be simulated

Details

The pdf of the posterior distribution of the incidence rate \lambda involves the Kummer confluent hypergeometric function of the second kind.

Value

dpost_lambda gives the density, and rpost_lambda samples from the distribution, and spost_lambda gives a summary of the distribution.

Note

Posterior_lambda is a generic name for the functions documented.

Examples

curve(dpost_lambda(x, 2, 2, 2, 20, 1, 10), from=0, to=0.4)
spost_lambda(2, 2, 2, 20, 1, 10)

[Package brr version 1.0.0 Index]