Description Usage Arguments Details Examples
View source: R/rplackett_luce.R
The plackett luce model assigns a probability distribution over permutations.
1 | rplackett_luce <- function(n, vs)
|
n |
number of permutations to generate |
vs |
k vector of probabilities; need not be scaled to sum to 1 |
This function returns a n x k matrix where each row is a permutation generated from a plackett luce distribution with parameters given by vs.
1 2 3 4 5 | library(coda)
vals <- rplackett_luce(100, vs = c(100, 1, 1))
post_vals <- plackett_luce(vals)
plot(as.mcmc(post_vals))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.