
brat
and bratt
family functions.Brat(mat, ties=0*mat, string=c(" > "," == "))
mat
. By default, there are no ties.
The matrix must be symmetric, and the diagonal should contain
NA
s."NZ > Oz"
`means' NZ beats Australia in rugby.
Suggested alternatives include " beats "
or " wins against "
.
The second value is usebrat
and bratt
.
Hence the non-diagonal elements of the $M+1$ by $M+1$ matrix
are concatenated into $M(M+1)$ values (no ties), while
if there are ties, the non-diagonal elements of the $M$ by $M$ matrix
are concatenated into $M(M-1)$ values.brat
,
bratt
,
InverseBrat
.journal = c("Biometrika", "Comm Statist", "JASA", "JRSS-B")
m = matrix(c( NA, 33, 320, 284, 730, NA, 813, 276,
498, 68, NA, 325, 221, 17, 142, NA), 4,4)
dimnames(m) = list(winner = journal, loser = journal)
Brat(m)
vglm(Brat(m) ~ 1, brat, trace=TRUE)
Run the code above in your browser using DataLab