powered by
Generates a reference distribution by randomly permuting each column of the original binary dataset.
ref_dist_bin(df)
A matrix containing the permuted binary reference distribution
data.frame or matrix of the original binary dataset
Generate Binary Reference Distribution
# \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