| make_ydif_from_bw | R Documentation |
Converts separate 'Best' and 'Worst' response matrices into 'Y_dif' pair indices for Best-Worst MDU models. The returned index is the position of the ordered '(best, worst)' pair among all 'C * (C - 1)' position pairs generated from each row of 'sets'.
make_ydif_from_bw(Best, Worst, sets)
Best |
Matrix or data frame of best responses (N persons x P tasks). Values must be positions within the corresponding row of 'sets', from '1' to 'ncol(sets)'. |
Worst |
Matrix or data frame of worst responses (N persons x P tasks). Values must be positions within the corresponding row of 'sets', from '1' to 'ncol(sets)'. |
sets |
Matrix or data frame of presented item sets (P tasks x C items). |
An integer matrix of pair indices ('Y_dif').
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.