Learn R Programming

gosset (version 1.5.1)

rank_tricot2: Build Plackett-Luce rankings from tricot ranking dataset

Description

Create an object of class "rankings" from tricot ranking data.

Usage

rank_tricot2(data, id, items, input, ...)

Value

a PlackettLuce "rankings" object, which is a matrix of dense rankings

Arguments

data

a data.frame with columns specified by items and input values

id

an index of data indicating the id column

items

a character or numerical vector for indexing the column(s) containing the item names in data

input

a character or numerical vector for indexing the column(s) containing the values in data to be ranked

...

additional arguments passed to methods. See details

Author

Kauê de Sousa

References

van Etten J., et al. (2016). Experimental Agriculture, 55(S1), 275–296. tools:::Rd_expr_doi("https://doi.org/10.1017/S0014479716000739")

See Also

rankings, nicabean

Other rank functions: rank_numeric(), rank_tricot(), set_binomialfreq(), set_paircomp()

Examples

Run this code

library("gosset")

R = nicabean$trial

R = R[R$trait == "Vigor", ]

names(R)

R = rank_tricot2(R, id = "id", items = "item", input = "rank")

Run the code above in your browser using DataLab