Posterior_lambda {brr} | R Documentation |
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.
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, ...)
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 |
n |
number of observations to be simulated |
The pdf of the posterior distribution of the incidence rate \lambda
involves
the Kummer confluent hypergeometric function of the second kind.
dpost_lambda
gives the density, and rpost_lambda
samples from
the distribution, and spost_lambda
gives a summary of the distribution.
Posterior_lambda
is a generic name for the functions documented.
curve(dpost_lambda(x, 2, 2, 2, 20, 1, 10), from=0, to=0.4)
spost_lambda(2, 2, 2, 20, 1, 10)