Skip to contents

binomnorm creates a binomial distribution of the given inputs and overlays a normal approximation.

Usage

binomnorm(k, n, prob, direction)

Arguments

k

number of successes of interest

n

number of trials

prob

success probability

direction

"above", "below", or "two.sided"

Value

A plot of the binomial distribution overlayed with the normal approximation

Examples

binomnorm(10, 20, 0.5, "two.sided")

#>  binomial: 1.176 
#>  normal approx: 1 
#>  normal approx with continuity: 1.177