correction_kernel_pseudo | R Documentation |
Function to determine if the augmented ranking is compatible with the new observed partial ranking. If it is not, the we create a new augmentation using the pseudolikelihood approach and calculate the augmentation probability.
correction_kernel_pseudo(
current_ranking,
observed_ranking,
rho,
alpha,
n_items,
metric = "footrule"
)
current_ranking |
An complete rank sequence vector of the proposed augmented ranking obtained from calculate_forward_probability function |
observed_ranking |
An incomplete rank sequence vector of the original observed incomplete ranking which contains NAs |
rho |
Numeric vector specifying the consensus ranking |
alpha |
Numeric value of the scale parameter |
n_items |
Integer is the number of items in a ranking |
metric |
A character string specifying the distance metric to use in the
Bayesian Mallows Model. Available options are |
list containing R_obs, the proposed 'corrected' augmented ranking that is compatible with the new observed ranking for a user, and forward_auxiliary_ranking_probability, a numerical value for the probability of correcting the ranking to be compatible with R_obs.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.