mybin: Lab 5 Function - Binomial

Description Usage Arguments Value Examples

View source: R/mybin_lab5.R

Description

Lab 5 Function - Binomial

Usage

1
mybin(iter = 100, n = 10, p = 0.5, tab = FALSE)

Arguments

iter

number of iterations

n

sample size in each iteration

p

probablity of success

tab

gives a table of successes if set to TRUE

Value

Returns a barplot of a series of binomial samples. Can also return a table.

Examples

1
## Not run: mybin(iter=50, n=10, p=0.75, tab=TRUE)

theo-frantz/MATH4753fran0107 documentation built on Nov. 23, 2020, 11:21 a.m.