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

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

Examples


rhyper2()
#> log(a^5 * (a + b)^-1 * (a + b + c + d + e + f + g)^-2 * (a + b + c + d
#> + e + f + g + h)^-10 * (a + b + c + d + e + f + h)^-2 * (a + b + c + d
#> + e + g)^-1 * (a + b + c + d + f + g)^-1 * (a + b + c + e + f + h)^-1 *
#> (a + b + d + e) * (a + b + d + e + g)^-1 * (a + b + d + f + g)^-1 * (a
#> + b + d + g)^-2 * (a + b + e + f + h)^-1 * (a + b + g)^-1 * (a + c + e
#> + g) * (a + d)^-1 * (a + d + e + f) * (a + d + g)^-1 * (a + e + f + h)
#> * (a + g)^-1 * b^5 * (b + c + d + e + f + g + h)^-1 * (b + c + d + e +
#> f + h)^-1 * (b + c + e + f + h)^-1 * (b + c + f)^-1 * (b + c + f +
#> h)^-1 * (b + e)^-1 * (b + e + f + h)^-1 * (b + f + h)^-1 * c^5 * (c + d
#> + e + f + g + h)^-1 * (c + d + f + g + h)^-1 * (c + e + g + h) * (c +
#> f)^-1 * (c + f + g + h)^-1 * (c + f + h)^-1 * (c + h)^-1 * d^5 * (d +
#> g)^-2 * e^6 * (e + g)^-1 * f^4 * (f + h)^-1 * g^7 * h^3)
rp(2,icons)
#>             NB         L        PB       THC        OA      WAIS
#> [1,] 0.1666667 0.1666667 0.1666667 0.1666667 0.1666667 0.1666667
#> [2,] 0.1666667 0.1666667 0.1666667 0.1666667 0.1666667 0.1666667