rmall {rankrate}R Documentation

Random Mallows generation.

Description

This function randomly generates rankings from a Mallows distribution.

Usage

rmall(I, pi0, theta, R = NULL)

Arguments

I

A numeric entry indicating the number of observations to be drawn, i.e., the number of judges providing rankings and ratings.

pi0

A vector specifying the consensus (modal probability) ranking; should be used only for tie-breaking equal values in p.

theta

A numeric entry specifying the Mallows scale parameter.

R

A numeric entry specifying the length of the rankings to be drawn. When R<=length(p), partial rankings are drawn by definition.

Value

A matrix of rankings (orderings) with one row per judge.

Examples

rmall(I=5,pi0=1:5,theta=1,R=3)
rmall(I=5,pi0=1:3,theta=.5,R=c(1,1,1,1,3))
rmall(I=5,pi0=1:3,theta=.5)


[Package rankrate version 1.2.0 Index]