.cluster_permute_test {CellaRepertorium} | R Documentation |
Cell permutation tests (internal)
.cluster_permute_test( labels, covariates, strata, statistic, n_perm, alternative, ... )
labels |
|
covariates |
|
strata |
|
statistic |
function of label (vector) and covariate (data.frame). Must return a scalar |
n_perm |
number of permutations to run |
alternative |
|
... |
passed along to |
a list containing the observed value of the statistic, the permuted values of the statistic, its expectation (under independence), a p-value, and the Monte Carlo standard error (of the expected value).