rhyper2: Random 'hyper2' objects

rhyper2R Documentation

Random hyper2 objects

Description

Random hyper2 loglikelihood functions, intended as quick “get you going” examples

Usage

rhyper2(n = 8, s = 5, pairs = TRUE, teams = TRUE, race = TRUE, pnames)

Arguments

n

Number of competitors, treated as even

s

Integer, Measure of the complexity of the log likelihood function

pairs, teams, race

Boolean, indicating whether or not to include different observations

pnames

Character vector of names, if missing interpret as letters; set to NA meaning no names

Note

Function rhyper2() returns a likelihood function based on random observations. To return a random probability vector drawn from a from a given (normalized) likelihood function, use rp().

Author(s)

Robin K. S. Hankin

See Also

rp,rrace

Examples


rhyper2()
rp(2,icons)


hyper2 documentation built on June 22, 2024, 9:57 a.m.