BinomialDist: Plot of a binomial distribution

Description Usage Arguments Author(s) Examples

View source: R/BinomialDistribution.R

Description

Given the probability of success p and the number of trials n, this function plots the resulting binomial distribution.

Usage

1
BinomialDist(p = 0.5, n = 18)

Arguments

p

Numeric. Probability of success for each trial

n

Numeric. Number of trials

Author(s)

Kevin Middleton (middletonk@missouri.edu)

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
## Not run: 
if (require(manipulate)){
  manipulate( BinomialDist(n = n), n = slider(2, 50) )
  manipulate( BinomialDist(p = p), p = slider(0, 1) )
  manipulate( BinomialDist(p = p, n = n),
                           p = slider(0, 1),
                           n = slider(2, 50) )
}

## End(Not run)

kmiddleton/kmmisc documentation built on Jan. 27, 2020, 7:55 a.m.