R/plot_binomial_likelihood.R
plot_binomial_likelihood.Rd
Plots the Binomial likelihood function for variable \(\pi\) given y observed successes in a series of n Binomial trials.
plot_binomial_likelihood(y, n, mle = FALSE)
number of successes
number of trials
a logical value indicating whether maximum likelihood estimate of \(\pi\), y/n, should be plotted
a ggplot
plot_binomial_likelihood(y = 3, n = 10, mle = TRUE)