Description Usage Arguments Details Value Note Examples
Density, distribution function, quantile function and random generation for the prior distribution on relative risk or the vaccine efficacy.
| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | 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 φ 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.
| 1 2 | curve(dprior_phi(x, 2, 2, 2, 10, 10), from=0, to=7)
sprior_phi(2, 2, 2, 10, 10, output="pandoc")
 | 
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.