rowKappa | R Documentation |
The function returns row-wise kappa statistics of a matrix, using a linear algebra procedure implemented in C++.
rowKappa(matrix, minOverlap = 0L)
matrix |
An adjacency matrix, containing values of either 0 or 1. |
minOverlap |
Integer, minimal overlap between two columns in order to be considered. Pairs with fewer overlaps will return |
A matrix of size m \times m if the input matrix is of size m \times n.
A kappa statistics of value 1 indicates perfect agreement. A value of 0 indicates no agreement. Note that the value can be negative, which implies the agreement is worse than random.
colKappa
to calculate the statistic of rows
Other kappa functions:
colKappa()
,
kappaSimp()
testMat <- cbind(c(1,1,0,0,1,0), c(1,1,0,1,1,0), c(0,1,0,0,1,0), c(1,0,1,0,1,0)) rowKappa(testMat) stopifnot(identical(rowKappa(testMat), colKappa(t(testMat))))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.