ref_dist_bin {bootcluster} | R Documentation |
Generate reference distribution for binary data
Description
Generates a reference distribution by randomly permuting each column of the original binary dataset.
Usage
ref_dist_bin(df)
Arguments
df |
data.frame or matrix of the original binary dataset |
Details
Generate Binary Reference Distribution
Value
A matrix containing the permuted binary reference distribution
Examples
binary_data <- matrix(sample(0:1, 100, replace=TRUE), ncol=5)
ref <- ref_dist_bin(binary_data)
[Package bootcluster version 0.4.2 Index]