This function constructs a win matrix from a data frame of comparisons. It is needed for the MCMC functions.
The number of areas in the study.
An N x 2 data frame, where N is the number of comparisons. Each row should correspond to a judgment. The first column is the winning area, the second column is the more losing area. The areas should be labeled from 1 to n.areas.
A matrix where the i, j^th element is the number of times area i beat area j.
1 2 3 4 5
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.