plot_normal_likelihood: Plot a Normal Likelihood Function

Description Usage Arguments Value Examples

View source: R/plot_normal_likelihood.R

Description

Plots the Normal likelihood function for variable μ given a vector of Normal data y.

Usage

1

Arguments

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.

Value

a ggplot of Normal likelihood

Examples

1
plot_normal_likelihood(y = rnorm(50, mean = 10, sd = 2), sigma = 1.5)

bayesrules documentation built on Sept. 25, 2021, 9:06 a.m.