gen_var_cov_matrix_block_designs: Computes varcov matrix for block designs

View source: R/complete_randomization_and_blocking.R

gen_var_cov_matrix_block_designsR Documentation

Computes varcov matrix for block designs

Description

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(s)

Adam Kapelner

Examples

## Not run: 
gen_var_cov_matrix_block_designs(n = 12, prop_T = 0.5, B = 3)

## End(Not run)

GreedyExperimentalDesign documentation built on Jan. 9, 2026, 5:07 p.m.