plot_gamma: Plot a Gamma Model for lambda

View source: R/plot_gamma.R

plot_gammaR Documentation

Plot a Gamma Model for λ

Description

Plots the probability density function (pdf) for a Gamma(shape, rate) model of variable λ.

Usage

plot_gamma(shape, rate, mean = FALSE, mode = FALSE)

Arguments

shape

non-negative shape parameter of the Gamma model

rate

non-negative rate parameter of the Gamma model

mean, mode

a logical value indicating whether to display the model mean and mode

Value

A density plot for the Gamma model.

Examples

plot_gamma(shape = 2, rate = 11, mean = TRUE, mode = TRUE)


mdogucu/bayesrules documentation built on April 23, 2022, 2:46 a.m.