rhyper2 function

Random hyper2 objects

Random hyper2 objects

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

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

Author(s)

Robin K. S. Hankin

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().

See Also

rp,rrace

Examples

rhyper2() rp(2,icons)
  • Maintainer: Robin K. S. Hankin
  • License: GPL (>= 2)
  • Last published: 2024-05-31