Generate null distribution for stratum-level combination
Source:R/CMRSS_SRE.R
com_null_dist_block_stratum.RdGenerates the randomization null distribution for the stratum-level combination method (comb.method = 2).
Usage
com_null_dist_block_stratum(
Z,
block,
methods.list.all,
scores.list.all = NULL,
mu_sd_block_list = 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 H method specifications.
- scores.list.all
Optional pre-computed scores.
- mu_sd_block_list
Optional pre-computed means and SDs from mu_sd_block().
- 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.