likhyper: Hypergeometric Log Likelihood Function

Description Usage Arguments Details Value Examples

Description

The log likelihood of a hypergeometric density with data, x, m, n and k parameters.

Usage

1
likhyper(m, n, k, x, log = FALSE)

Arguments

m

the number of white balls in the urn.

n

the number of black balls in the urn.

k

the number of balls drawn from the urn.

x

vector of quantiles representing the number of white balls drawn without replacement from an urn which contains both black and white balls.

log

logical; if TRUE, probabilities p are given as log(p).

Details

The log likelihood is the log of a function of parameters given the data.

Value

A numeric scalar for the log likelihood of the hypergeometric density given the data where m, n, and k can be held constant or if vector were given vector will be returned.

Examples

1
2
likhyper(x = rhyper(nn = 2, m = 3, n = 4, k = 2),
        m = 3, n = 4, k = 2)

BenBarnard/likelihoodExplore documentation built on Dec. 4, 2019, 4:38 p.m.