mybin: my binomial function

View source: R/functions.R

mybinR Documentation

my binomial function

Description

finds the number of successes in each iteration given a probability. The function adds the number of iterations that received each number of successes, divides by overall number of iterations, and represents the distribution as a percentage.

Usage

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

Arguments

iter

number of iterations

n

number of samples taken each iteration, with replacement

p

probability of TRUE sample

Value

a bar graph showing the distribution and associated table

Examples

mybin()



nbcastle/MATH4753cast0059 documentation built on May 3, 2022, 8:21 p.m.