Check First Batch Validity
This function checks if the first batch size is greater than or equal to the number of treatment arms.
.check_first_batch(batch_sizes, ys)
batch_sizes
: A numeric vector specifying batch sizes.ys
: A matrix of counterfactual conditions.Returns NULL if the first batch size is valid; otherwise, throws an error.
Useful links