The package makes extensive use of order tables and these are discussed here together with a list of order tables available in the package as data. See also ranktable.Rd.
Although pentathlon_table is a dataset in the package, the source dataset is also included in the inst/ directory as file pentathlon.txt; use idiom like read.table("inst/pentathlon.txt") to load the order table.
Object pentathlon_table is a representative example of an ordertable. Each row is a competitor, each column an event (venue, judge, ). The first row shows Moiseev's ranking in shooting (5th), fencing (1st), and so on. The first column shows the ranks of the competitors in shooting. Thus Moiseev came fifth, Zadneprovskis came 6th, and so on.
However, to create a likelihood function we need ranks, not orders. We need to know, for a given event, who came first, who came second, and so on (an extended discussion on the difference between rank and order is given at rrank ). We can convert from an order table to a rank table using ordertable_to_ranktable() (see also ranktable.Rd):
In the above order table, we have DNF for did not finish
and DNS for did not start . The formula1 order
table has other similar entries such as DSQ for
disqualified and a discussion is given at
ordertable2supp.Rd.
Links are given below to all the order tables in the package. Note that
the table in inst/eurovision.Rmd (wiki_matrix) is not an
order table because no country is allowed to vote for itself.
To coerce a table like the Volvo dataset shown above into an order table
[that is, replace DNS with zeros, and also force nonzero entries
to be contiguous], use as.ordertable().
Author(s)
Robin K. S Hankin
See Also
ordertable2supp,rrank, ranktable,as.ordertable
Examples
ordertable_to_ranktable(soling_table)ordertable2supp(soling_table)== soling # should be TRUE