Skip to contents

The varcov matrix for block designs consists of a block- diagonal matrix with B blocks (the number of blocks in the design) with off-diagonal entries = -1 / (n/B - 1) where n is the number of subjected in the study.

Usage

gen_var_cov_matrix_block_designs(n, prop_T, B, use_cache = TRUE)

Arguments

n

number of observations

prop_T

the proportion of treatments allocated

B

the number of blocks

use_cache

Cache results for repeated calls with identical inputs. Default is TRUE.

Value

varcov matrix for the specific block design

Author

Adam Kapelner

Examples

if (FALSE) { # \dontrun{
gen_var_cov_matrix_block_designs(n = 12, prop_T = 0.5, B = 3)
} # }