Learn R Programming

bootcluster (version 0.4.2)

ref_dist_bin: 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)

Value

A matrix containing the permuted binary reference distribution

Arguments

df

data.frame or matrix of the original binary dataset

Details

Generate Binary Reference Distribution

Examples

Run this code
# \donttest{
binary_data <- matrix(sample(0:1, 100, replace=TRUE), ncol=5)
ref <- ref_dist_bin(binary_data)
# }

Run the code above in your browser using DataLab