powered by
Calculates transition probabilities for proposing a new rho
leap_and_shift_probs(rho, n_items, leap_size = 1L)
A list containing:
rho_prime A ranking sequence proposed consensus ranking
rho_prime
forwards_prob Numeric value to account for transition probability from rho to rho_prime
forwards_prob
backwards_prob Numeric Value to account for the transition probability from rho_prime to rho
backwards_prob
rho
A ranking sequence
Integer is the number of items in a ranking
Integer specifying the step size of the leap-and-shift proposal distribution.
rho <- c(1, 2, 3, 4, 5, 6) n_items <- 6 leap_and_shift_probs(rho, n_items, 1) leap_and_shift_probs(rho, n_items, 2) leap_and_shift_probs(rho, n_items, 3)
Run the code above in your browser using DataLab