permute_ab: basic between-group permutation implementation

View source: R/dea.R

permute_abR Documentation

basic between-group permutation implementation

Description

minimal code & dependency-free. Not computationally efficient, but this is negligible for our use-cases

Usage

permute_ab(x, nmax = 100)

Arguments

x

integer vector of (1,2) group IDs, at least two of each

nmax

maximum number of permuted sets

Details

permute_ab(as.integer(c(1,1,1, 2,2,2))) # most basic permute_ab(as.integer(c(1,1,1,1, 2,2,2,2,2))) # uneven groups

Value

integer matrix where rows are permutations and columns are indices in input x


ftwkoopmans/msdap documentation built on March 5, 2025, 12:15 a.m.