Prior_phi {brr} | R Documentation |
Density, distribution function, quantile function and random generation for the prior distribution on relative risk or the vaccine efficacy.
dprior_phi(phi, b, c, d, S, T, ...)
dprior_VE(VE, b, c, d, S, T, ...)
pprior_phi(q, b, c, d, S, T, ...)
pprior_VE(q, b, c, d, S, T, ...)
qprior_phi(p, b, c, d, S, T, ...)
qprior_VE(p, b, c, d, S, T, ...)
rprior_phi(n, b, c, d, S, T)
sprior_phi(b, c, d, S, T, ...)
phi , VE , q |
vector of quantiles |
b |
non-negative rate parameter |
c , d |
non-negative shape parameters |
S , T |
sample sizes in control group and treated group |
... |
other arguments passed to |
p |
vector of probabilities |
n |
number of observations to be simulated |
The prior distribution on the relative risk \phi
is the Beta2 distribution
with shape parameters c
and d
and scale parameter (T+b)/S
.
dprior_phi
gives the density, pprior_phi
the distribution
function, qprior_phi
the quantile function, rprior_phi
samples from
the distribution, and sprior_phi
gives a summary of the distribution.
Prior_phi
is a generic name for the functions documented.
curve(dprior_phi(x, 2, 2, 2, 10, 10), from=0, to=7)
sprior_phi(2, 2, 2, 10, 10, output="pandoc")