plot_binomial_likelihood: Plot a Binomial Likelihood Function

View source: R/plot_binomial_likelihood.R

plot_binomial_likelihoodR Documentation

Plot a Binomial Likelihood Function

Description

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

Usage

plot_binomial_likelihood(y, n, mle = FALSE)

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

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

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