Description Usage Arguments Details Value Note Examples
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.
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, ...)
|
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 λ 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.
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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.