mybin: A binomial simulation

Description Usage Arguments Value Examples

View source: R/mybin.R

Description

A binomial simulation

Usage

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

Arguments

iter

the number of iterations

n

the number of Bernoulli trials

p

the probability of a success in each trial

Value

returns a barplot of relative frequencies and a table of the same

Examples

1
mybin() -> Runs the simulation with the default parameters

sergiogarcia29/MATH4753PROJ1 documentation built on Nov. 22, 2020, 12:39 a.m.