obtain_constants.Rd
This function calculates constants c_k0 and delta_irk0 based on the observed rankings Pi
, as defined in Pearce and Erosheva (2024). For internal use only.
obtain_constants(Pi, I, J, 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 numeric indicating the number of rows in Pi
A numeric indicating the total number of objects being compared.
A boolean to indicate whether the observed rankings are complete/partial rankings (FALSE
; default) or groupwise comparisons (TRUE
).
A list containing calculated constants c_k0 and delta_irk0.