mybin: mybin

Description Usage Arguments Value Examples

View source: R/mybin.R

Description

Simulate a binomial distribution as a series of bernoulli trials

Usage

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

Arguments

iter

- the number of n-samples to draw

n

- sample size for each iteration

p

- the probability of a 'Success'

Value

the calculated probability of success

Examples

1
2
3
mybin()

x<-mybin(10000, n=50, p=0.69)

Tom-bomb/glowup documentation built on Dec. 31, 2020, 5:32 p.m.