This function is an internal helper for prop_diff_uncond_exact().
h_find_ci_bound_uniroot(
p_value_function,
cutoff,
direction = c("increasing", "decreasing"),
interval = c(-1, 1),
tol = 1e-06,
maxiter = 1000
)A number with the requested CI bound, or NA_real_ if no bound exists.
(function) one-sided p-value function in terms of d.
(number) one-sided significance level threshold.
(string) one of "increasing" or "decreasing".
(numeric) 2-element search interval.
(number) tolerance for stats::uniroot().
(integer) maximum number of stats::uniroot() iterations.