Prior_phi: Prior distribution on the relative risk and the vaccine...

Description Usage Arguments Details Value Note Examples

Description

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

Usage

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

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 φ 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

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

brr documentation built on May 2, 2019, 1:04 a.m.