R/permutation-testing.R
purity.Rd
Calculate number of cluster-subject singletons for the purposes of permutation testing
purity(cluster_idx, subject)
factor-like cluster variable
factor-like subject
average number of singletons
message("see example(cluster_permute_test)")
#> see example(cluster_permute_test)