psi {rankrate} | R Documentation |
Normalizing constant function of a Mallows distribution, psi
Description
This function calculates the normalizing constant of a Mallows distribution under the Kendall distance
Usage
psi(theta, J, R, log = FALSE)
Arguments
theta |
A numeric entry specifying the Mallows scale parameter. |
J |
A numeric entry or vector of positive integers indicating total number of objects each judge has access to.
If |
R |
A numeric entry or vector of positive integers indicating the length of the ranking provided by each judge.
If |
log |
A boolean indicating if |
Value
A numeric value or vector representing normalizing constant of a Mallows distribution.
Examples
psi(theta=1,J=10,R=8)
psi(theta=2,J=c(4,4,3),R=c(2,2,1),log=TRUE)
[Package rankrate version 1.2.0 Index]