mleM: Maximum likelihood estimator for sample size in conditional...

Description Usage Arguments Value Examples

View source: R/chyper.R

Description

Calculates the MLE of a sample size in a conditional hypergeometric distribution: the distribution of how many items are in the overlap of all samples when samples of arbitrary size are each taken without replacement from populations of arbitrary size.

Usage

1
mleM(population, k, s, n, m, verbose = T)

Arguments

population

the index of the unknown sample size

k

the observed overlaps

s

an integer representing the size of the intersecting population

n

a vector of integers representing the sizes of each non-intersecting population

m

a vector of integers representing the sample sizes where the value of the unknown sample size should be any integer as a placeholder

verbose

T/F should intermediate messages be printed?

Value

The maximum likelihood estimator of the unknown sample size

Examples

1
mleM(1, c(0,0,1,1,0,2,0), 8, c(12,13,14), c(0,8,9))

chyper documentation built on Aug. 13, 2021, 5:09 p.m.

Related to mleM in chyper...