dmb.Rd
This function calculates the density of observation(s) under a Mallows-Binomial distribution.
dmb(rankings, ratings, p, theta, M, pi0 = NULL, log = FALSE)
A matrix of rankings, potentially with attribute "assignments" to signify separate reviewer assignments. One ranking per row.
A matrix of ratings, one row per judge and one column per object.
A vector specifying the underlying object qualities. All values between be between 0 and 1, inclusive.
A numeric entry specifying the Mallows scale parameter.
Numeric specifying maximum (=worst quality) integer rating.
A vector specifying the consensus (modal probability) ranking; should be used only for tie-breaking
equal values in p
.
A boolean indicating if the log likelihood should be returned.
A numeric value indicating the (log) likelihood of rankings and ratings under a Mallows distribution.