matrix2supp {hyper2} | R Documentation |
Convert a matrix to a likelihood function
Description
Functions to convert matrix observations to likelihood functions. Each row is an observation of some kind, and each column a player.
Function ordertable2supp()
is documented separately at
ordertable2supp
.
Usage
saffy(M)
volley(M)
Arguments
M |
A matrix of observations |
Details
Two functions are documented here:
-
saffy()
, which converts a matrix of restricted choices into a likelihood function; it is named for Saffron O'Neill. The canonical example would be Saffron's climate change dataset, documented aticons
. Functionsaffy()
returns the appropriate likelihood function for the dataset. -
volley()
, which converts a matrix of winning and losing team members to a likelihood function. The canonical example is the volleyball dataset. Each row is a volleyball game; each column is a player. An entry of 0 means “on the losing side”, an entry of 1 means “on the winning side”, and an entry ofNA
means “did not play”.
Author(s)
Robin K. S. Hankin
See Also
Examples
icons == saffy(icons_table) # should be TRUE
volley(volleyball_table) == volleyball # also should be TRUE