GammaPriorCh: Compute Parameters to Calibrate a Gamma Distribution

View source: R/GammaPriorCh.R

GammaPriorChR Documentation

Compute Parameters to Calibrate a Gamma Distribution

Description

Compute parameters to calibrate the prior distribution of a relative risk that has a gamma distribution.

Usage

GammaPriorCh(theta, prob, d)

Arguments

theta

upper quantile

prob

upper quantile

d

degrees of freedom

Value

List containing

a

shape parameter

b

rate parameter

Author(s)

Jon Wakefield

See Also

LogNormalPriorCh

Examples

param <- GammaPriorCh(5, 0.975,1)
curve(dgamma(x,shape=param$a,rate=param$b),from=0,to=6,n=1000,ylab="density")


SpatialEpi documentation built on March 7, 2023, 8 p.m.