dot-cluster_permute_test: Cell permutation tests (internal)

Description Usage Arguments Value

Description

Cell permutation tests (internal)

Usage

1
2
3
4
5
6
7
8
9
.cluster_permute_test(
  labels,
  covariates,
  strata,
  statistic,
  n_perm,
  alternative,
  ...
)

Arguments

labels

factor of length n

covariates

data.frame of length n

strata

factor

statistic

function of label (vector) and covariate (data.frame). Must return a scalar

n_perm

number of permutations to run

alternative

character naming the direction statistic should be fall under the alternative hypothesis

...

passed along to statistic

Value

a list containing the observed value of the statistic, its expectation (under independence), a p-value, and the Monte Carlo standard error (of the expected value).


CellaRepertorium documentation built on Nov. 8, 2020, 7:48 p.m.