likelihood: Plot a binomial likelihood function

Description Usage Arguments Value Examples

View source: R/demo_utils.R

Description

Plot a binomial likelihood function

Usage

1
likelihood(n = 100, m = 60)

Arguments

n

Number of trials

m

Number of successes

Value

A ggplot of the likelihood function

Examples

1
2
3
likelihood(100, 60)
likelihood(75, 25)
likelihood(100, 33)

nikdraka/demopkg documentation built on July 2, 2020, 6:26 p.m.