Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

GammaPriorCh

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

A list containing

a

shape parameter

b

rate parameter

Author(s)

Jon Wakefield

See Also

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

Methods and Data for Spatial Epidemiology

v1.2.3
GPL-2
Authors
Cici Chen [ctb], Albert Y. Kim [aut, cre], Michelle Ross [ctb], Jon Wakefield [aut]
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.