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)
NULL (used for validation only).