dist2bin: Calculate the agreement-based measurement

Description Usage Arguments Value Author(s) Examples

View source: R/dist2bin.R

Description

Calculate the agreement-based measurement of two any pair-wise samples x_i and x_j for binary variables

Usage

1
dist2bin(X, C)

Arguments

X

A sample-feature matrix with rows as samples and columns as features

C

The same as X

Value

A matrix whose elements at (i,j) is the agreement-based measurement of two any pair-wise samples x_i and x_j

Author(s)

Xiaoyao Yin

Examples

1
2
3
4
data_list <- simu_data_gen()
X <- data_list[[1]]
C <- X
Diff <- dist2bin(X,C)

M2SMF documentation built on Jan. 11, 2020, 9:28 a.m.