kappaSimp: Calculate column-wise kappa statistics of a matrix, using a...

View source: R/kappa.R

kappaSimpR Documentation

Calculate column-wise kappa statistics of a matrix, using a simple procedure by going through the matrix and counting

Description

Calculate column-wise kappa statistics of a matrix, using a simple procedure by going through the matrix and counting

Usage

kappaSimp(matrix, minOverlap = 0)

Arguments

matrix

a binary matrix of either 0 or one

minOverlap

Numeric/integer, the minimal overlap between two columns to be considered for further calculation

Value

A matrix of size nxn if the input matrix is of size mxn (m is arbitrary)

See Also

colKappa to calculate the same statistic using a linear algebra based routine

Other kappa functions: colKappa(), rowKappa()

Examples

testMat <- cbind(c(1,1,0,0,1,0), c(1,1,0,1,1,0))
ribiosMath:::kappaSimp(testMat)

bedapub/ribiosMath documentation built on Jan. 29, 2023, 1:48 p.m.