Plot a Binomial Likelihood Function
Plots the Binomial likelihood function for variable
given y observed successes in a series of n Binomial trials.
plot_binomial_likelihood(y, n, mle = FALSE)
y
: number of successesn
: number of trialsmle
: a logical value indicating whether maximum likelihood estimate of , y/n, should be plotteda ggplot
plot_binomial_likelihood(y = 3, n = 10, mle = TRUE)
Useful links