library("PlackettLuce")
data("breadwheat", package = "gosset")
G = rank_tricot(breadwheat,
items = c("variety_a","variety_b","variety_c"),
input = c("overall_best","overall_worst"),
group = FALSE)
mod = PlackettLuce(G)
# default method, no bootstrapping and 5 folds
resample(mod)
resample(mod, log = FALSE)
# the argument 'seed' will make sure that the function
# always return the same results
resample(mod, log = FALSE, seed = 1526)
# add bootstrapping
resample(mod, bootstrap = TRUE, log = FALSE, n1 = 100)
Run the code above in your browser using DataLab