Posterior_mu {brr} | R Documentation |
Density and random generation for the posterior distribution on the rate in the control group. The distribution function and the quantile function are not available.
dpost_mu(mu, a, b, c, d, T, x, y, ...)
rpost_mu(n, a, b, c, d, T, x, y)
spost_mu(a, b, c, d, T, x, y, ...)
mu |
vector of quantiles |
a , b |
non-negative shape and rate parameter of the Gamma prior distribution on |
c , d |
non-negative shape parameters of the prior distribution on |
T |
sample size in control 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 \mu
involves
the Kummer confluent hypergeometric function of the second kind.
dpost_mu
gives the density, rpost_mu
samples from the
distribution, and spost_mu
gives a summary of the distribution.
Posterior_mu
is a generic name for the functions documented.
curve(dpost_mu(x, 2, 2, 2, 2, 10, 3, 8), from=0, to=2)
spost_mu(2, 2, 2, 2, 10, 3, 8, output="pandoc")