This function is an internal helper for prop_diff_uncond_exact().
h_worst_case_tail_probability(
d_star,
n1,
n2,
t_values,
t0,
tables,
tail = c("upper", "lower")
)A number between 0 and 1 corresponding to the worst-case one-sided tail probability
at the hypothesized difference.
(number) hypothesized difference in proportions.
(positive integer) sample size in group 1.
(positive integer) sample size in group 2.
(numeric) vector of test statistic values from enumerated tables.
(number) observed test statistic value.
(data.frame) with columns n11 and n21 containing enumerated
outcomes in each group.
(string) one of "upper" or "lower" indicating which tail to compute.