This function validates whether the length of the treatment allocation rate (TAR) matches the number of treatment arms (arm_names). If the lengths do not match, it throws an error.

validate_tar(TAR = NULL, n_arms)

Arguments

TAR

Numeric vector. Treatment allocation rates for each arm.

n_arms

Numeric. The number of treatment arms that TAR must correspond to.

Value

NULL (used for validation only).

Author

Thomas Debray tdebray@fromdatatowisdom.com