mybin: mybin - Binomial Simulation

Description Usage Arguments Value Examples

View source: R/mybin.R

Description

Uses sample function to produce a binomial simulation over iter number of trials. Fills a matrix and creates a labeled barplot for given input.

Usage

1
mybin(iter, n, p)

Arguments

iter

- number of iterations

n

- sample size (number of trials)

p

- probability of a success

Value

plot of the simulation with proportions and a table of proportions

Examples

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

gabescott10/MATH4753scot0068 documentation built on March 15, 2020, 4:01 p.m.