dBTL.Rd
This function calculates the density of ordinal comparison data (e.g., complete rankings, partial rankings, pairwise comparisons, or groupwise comparisons) based on an appropriate Bradley-Terry-Luce (BTL) model with object-specific worth parameters, omega
.
dBTL(Pi, omega, log = FALSE, groupwise = FALSE)
A matrix of preference orderings ("rankings"), such that the (i,j) entry is the index of the jth-most preferred object according to judge i. If groupwise=TRUE
, then the index corresponds to the jth-most preferred object among those in row i; if groupwise=FALSE
, it is assumed that all unranked objects (if any) are less preferred than those which are ranked.
A vector of non-negative object worth parameters.
A boolean to indicate whether the log density should be returned. Default to FALSE
.
A boolean to indicate whether the observed rankings are complete/partial rankings (FALSE
; default) or groupwise comparisons (TRUE
).
A numeric joint density of the observed rankings.