plot_binomial_likelihood: Plot a Binomial Likelihood Function

Description Usage Arguments Value Examples

View source: R/plot_binomial_likelihood.R

Description

Plots the Binomial likelihood function for variable π given y observed successes in a series of n Binomial trials.

Usage

1

Arguments

y

number of successes

n

number of trials

mle

a logical value indicating whether maximum likelihood estimate of π, y/n, should be plotted

Value

a ggplot

Examples

1
plot_binomial_likelihood(y = 3, n = 10, mle = TRUE)

bayesrules documentation built on Sept. 25, 2021, 9:06 a.m.