Fitted Probabilities for PlackettLuce Objects
Fitted probabilities for all choice/alternative combinations in the data.
## S3 method for class 'PlackettLuce' fitted(object, aggregate = TRUE, free = TRUE, ...) ## S3 method for class 'pltree' fitted(object, aggregate = TRUE, free = TRUE, ...)
object |
an object as returned by
|
aggregate |
logical; if |
free |
logical; if |
... |
further arguments, currently ignored. |
A list with the following components
choices |
The selected item(s). |
alternatives |
The set of item(s) that the choice was made from. |
ranking |
The ranking(s) including this choice. |
n |
The weighted count of rankings including this
choice (equal to the ranking weight if |
fitted |
The fitted probability of making this choice. |
If object
was a "pltree"
object, the list has an
additional element, node
, specifying which node the ranking
corresponds to.
R <- matrix(c(1, 2, 0, 0, 4, 1, 2, 3, 2, 1, 1, 1, 1, 2, 3, 0, 2, 1, 1, 0, 1, 0, 3, 2), nrow = 6, byrow = TRUE) colnames(R) <- c("apple", "banana", "orange", "pear") mod <- PlackettLuce(R) fit <- fitted(mod) fit
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.