rank_ord_switch {PLMIX} | R Documentation |
Switch from orderings to rankings and vice versa
Description
Convert the format of the input dataset from orderings to rankings and vice versa.
Usage
rank_ord_switch(data, format_input, nranked = NULL)
Arguments
data |
Numeric |
format_input |
Character string indicating the format of the |
nranked |
Optional numeric vector of length |
Value
Numeric N
\times
K
data matrix of partial sequences with inverse format.
Author(s)
Cristina Mollica and Luca Tardella
Examples
## From orderings to rankings for the Dublin West dataset
data(d_dublinwest)
head(d_dublinwest)
rank_ord_switch(data=head(d_dublinwest), format_input="ordering")
[Package PLMIX version 2.1.1 Index]