Posterior_lambda: Posterior distribution on the incidence rate in the treated...

Description Usage Arguments Details Value Note Examples

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

1
2
3
4
5
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 μ

c,d

non-negative shape parameters of the prior distribution on φ

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 λ 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

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

stla/brr documentation built on May 30, 2019, 5:46 p.m.