Learn R Programming

ProbBayes (version 1.1)

dsampling: Hypergeometric sampling density

Description

Hypergeometric sampling density

Usage

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

Examples

Run this code
# NOT RUN {
  pop_N <- 10
  pop_B <- 4
  sample_n <- 3
  sample_b <- 2
  dsampling(sample_b, pop_N, pop_B, sample_n)
# }

Run the code above in your browser using DataLab