Prior_phi {brr}R Documentation

Prior distribution on the relative risk and the vaccine efficacy

Description

Density, distribution function, quantile function and random generation for the prior distribution on relative risk or the vaccine efficacy.

Usage

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, ...)

Arguments

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 Beta2Dist

p

vector of probabilities

n

number of observations to be simulated

Details

The prior distribution on the relative risk \phi is the Beta2 distribution with shape parameters c and d and scale parameter (T+b)/S.

Value

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.

Note

Prior_phi is a generic name for the functions documented.

Examples

curve(dprior_phi(x, 2, 2, 2, 10, 10), from=0, to=7)
sprior_phi(2, 2, 2, 10, 10, output="pandoc")

[Package brr version 1.0.0 Index]