myhyper: my hypergeometric function

View source: R/functions.R

myhyperR Documentation

my hypergeometric function

Description

a function which shows the hypergeometric distribution of a sample. Shows probability of number of successes while sampling without replacement

Usage

myhyper(iter = 100, N = 20, r = 12, n = 5)

Arguments

iter

number of iterations

N

population size

r

number of successes in population

n

number of samples each iteration without replacement

Value

a bar plot of the distribution and associated table

Examples

myhyper()


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