poisson_gamma_plot: Visualize a Poisson-Gamma model

Description Usage Arguments Examples

Description

Visualize the prior and posterior pdfs for a Poisson-Gamma model.

Usage

1
poisson_gamma_plot(s, r, sum_x = NULL, n = NULL)

Arguments

s, r

Shape & rate parameters of the Gamma prior (Gamma(s,r))

sum_x, n

Observed count total & sample size, respectively

Examples

1
2
3
library(ggplot2)
poisson_gamma_plot(s=2, r=2)
poisson_gamma_plot(s=2, r=2, sum_x=10, n=5)

ajohns24/MacBayes documentation built on May 19, 2019, 12:41 a.m.