View source: R/plot_binomial_likelihood.R
plot_binomial_likelihood | R Documentation |
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 successes |
n |
number of trials |
mle |
a logical value indicating whether maximum likelihood estimate of π, y/n, should be plotted |
a ggplot
plot_binomial_likelihood(y = 3, n = 10, mle = TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.