These are the basic functions of the hyper2 package. Function
hyper() is the low-level creator function; as.hyper2() is
a bit more user-friendly and attempts to coerce its arguments into a
suitable form; for example, a matrix is interpreted as rows of brackets.
Functions pnames() and pnames<-() are the accessor and
setter methods for the player names. Length-zero character strings are
acceptable.
Function is_valid_hyper2() tests for valid input, returning a
Boolean. Note that it is perfectly acceptable to have an element of
pnames that is not present in the likelihood function (this would
correspond to having no information about that particular player).
Function size() returns the (nominal) length \(n\) of
nonnegative vector \(p=\left(p_1,\ldots,p_n\right)\)
where \(p_1+\cdots+p_n=1\). Note that function
lhyper2() takes the vector
\(p=\left(p_1,\ldots,p_{n-1}\right)\).