Extract Item Parameters of Plackett-Luce Models
Methods for itempar
to extract the item
parameters (worth or log-worth) from a Plackett-Luce model or tree.
In the case of a tree, item parameters are extracted for each terminal node.
## S3 method for class 'PlackettLuce' itempar(object, ref = NULL, alias = TRUE, vcov = TRUE, log = FALSE, ...) ## S3 method for class 'pltree' itempar(object, ...) ## S3 method for class 'PLADMM' itempar(object, ref = NULL, alias = TRUE, vcov = TRUE, log = FALSE, ...)
object |
a fitted model object as returned by
|
ref |
a vector of labels or position indices of item parameters which
should be used as restriction/for normalization. If |
alias |
logical. If |
vcov |
logical. If |
log |
logical. Whether to return log-abilities ( |
... |
further arguments which are currently not used. |
An object of class "itempar"
, see
itempar
.
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) coef(mod) # equivalent to default coefficients, i.e. log abilities itempar(mod, ref= 1, log = TRUE) # abilities, normalized so abilities for apple and pear sum to 1 itempar(mod, ref = 1:2)
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.