Ordinal preferences can order every item, or they can order a subset. Some
ordinal preference datasets will contain ties between items at a given rank.
Hence, there are four distinct types of preferential data:
soc
Strict Orders - Complete List
soi
Strict Orders - Incomplete List
toc
Orders with Ties - Complete List
toi
Orders with Ties - Incomplete List
Usage
pref_type(x, n_items = NULL)
Arguments
- x
A preferences
object (or vector data representing preferences)
- n_items
The number of items, needed to assess whether a selection is
complete or not. Defaults to nlevels(x)
if x
has class preferences
,
otherwise defaults to the length of the longest preference.
Value
One of c("soc", "soi", "toc", "toi")
, indicating the type of
preferences in x
(with or without ties / complete or incomplete rankings).