View source: R/plot_normal_likelihood.R
plot_normal_likelihood | R Documentation |
Plots the Normal likelihood function for variable μ given a vector of Normal data y.
plot_normal_likelihood(y, sigma = NULL)
y |
vector of observed data |
sigma |
optional value for assumed standard deviation of y. by default, this is calculated by the sample standard deviation of y. |
a ggplot of Normal likelihood
plot_normal_likelihood(y = rnorm(50, mean = 10, sd = 2), sigma = 1.5)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.