dot-check_first_batch function

Check First Batch Validity

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)

Arguments

  • batch_sizes: A numeric vector specifying batch sizes.
  • ys: A matrix of counterfactual conditions.

Returns

Returns NULL if the first batch size is valid; otherwise, throws an error.