dsampling: Hypergeometric sampling density

Description Usage Arguments Value Author(s) Examples

View source: R/dsampling.R

Description

Hypergeometric sampling density

Usage

1
  dsampling(sample_b, pop_N, pop_B, sample_n)

Arguments

sample_b

number of black balls in sample

pop_N

number of balls in population

pop_B

number of black balls in population

sample_n

number of balls in sample

Value

Value of hypergeometric sampling probability

Author(s)

Jim Albert

Examples

1
2
3
4
5
  pop_N <- 10
  pop_B <- 4
  sample_n <- 3
  sample_b <- 2
  dsampling(sample_b, pop_N, pop_B, sample_n)

TeachBayes documentation built on May 1, 2019, 9:17 p.m.