mybin: mybin

Description Usage Arguments Value Examples

View source: R/mypackagebin.R

Description

Generates samples with a binomial distribution given number of samples, number of iterations, and a probability

Usage

1
mybin(iter, n, p)

Arguments

iter

number of samples to generate

n

number of trials

p

probability of success

Value

a table representing the observed number of successes

Examples

1
2
3
4
5
mybin(iter=100,n=10,p=0.7)
mybin(iter=200,n=10,p=0.7)
mybin(iter=500,n=10,p=0.7)
mybin(iter=1000,n=10,p=0.7)
mybin(iter=10000,n=10,p=0.7)

nafryer97/MATH4753PROJ1 documentation built on Feb. 23, 2020, 7:49 a.m.