Learn R Programming

M2SMF (version 2.0)

dist2bin: Calculate the agreement-based measurement

Description

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

Usage

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

Examples

Run this code
# NOT RUN {
data_list <- simu_data_gen()
X <- data_list[[1]]
C <- X
Diff <- dist2bin(X,C)
# }

Run the code above in your browser using DataLab