correction_kernel: Correction Kernel

View source: R/RcppExports.R

correction_kernelR Documentation

Correction Kernel

Description

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 random sampling approach and calculate the augmentation probability.

Usage

correction_kernel(observed_ranking, current_ranking, n_items)

Arguments

observed_ranking

A ranking sequence vector of the observed partial ranking (no missing values) The original incomplete partial ranking is in the rankings data set.

current_ranking

A ranking sequence vector of the current augmented ranking (no missing values)

n_items

Integer is the number of items in a ranking

Value

List containing the proposed 'corrected' augmented ranking that is compatible with the new observed ranking for a user


BayesMallows documentation built on Nov. 25, 2023, 5:09 p.m.