Generate null distribution of combined stratified statistics
Source:R/CMRSS_SRE.R
com_null_dist_block.RdGenerates the randomization null distribution of the maximum among weighted and normalized stratified rank sum statistics.
Usage
com_null_dist_block(
Z,
block,
methods.list.all,
scores.list.all = NULL,
null.max = 10^4,
weight,
block.sum = NULL,
Z.perm = NULL,
chunk_size = NULL
)Arguments
- Z
An n-dimensional binary treatment assignment vector.
- block
An n-dimensional vector specifying block membership.
- methods.list.all
A list of lists of method specifications.
- scores.list.all
Optional pre-computed scores.
- null.max
Number of permutations.
- weight
A B-dimensional vector of block weights.
- block.sum
Optional pre-computed block summary.
- Z.perm
Optional pre-computed permutation matrix.
- chunk_size
Optional number of permutations per chunk when
Z.permisNULL. IfNULL, chosen adaptively based onn.