Compute the closed-form two-arm CMR allocation for a supplied confidence rectangle over treatment and control variances.
Usage
binary_rectangle_corners(rectangle)
binary_rectangle_regret(pi, rectangle, return_details = FALSE)
cmr_two_arm_from_rectangle(rectangle)
cmr_binary_from_rectangle(rectangle)Value
cmr_two_arm_from_rectangle() returns a list of class cmr_two_arm with
pi, U_CMR, the input rectangle, rectangle corners, corner regrets,
binding-corner diagnostics, and additional solver diagnostics.
binary_rectangle_corners() returns the two least-favorable rectangle
corners. binary_rectangle_regret() returns the worst regret at pi, or
a detailed list when return_details = TRUE.
See also
Other CMR rules:
cmr_multiarm(),
cmr_multiarm_from_rectangle(),
cmr_multiple_outcomes(),
cmr_proxy(),
cmr_stratified(),
cmr_stratified_from_rectangle(),
cmr_two_arm(),
cmr_unbounded(),
cmr_unbounded_from_rectangle(),
print.cmr_two_arm()
Other rectangle helpers:
cmr_multiarm_from_rectangle(),
cmr_stratified_from_rectangle(),
cmr_unbounded_from_rectangle(),
folded_binomial_pmf(),
multiarm_variance_objective(),
rectangle_bernoulli_binary(),
rectangle_bounded_two_arm(),
rectangle_multiarm(),
rectangle_multiple_outcomes(),
rectangle_proxy(),
rectangle_stratified(),
rectangle_unbounded(),
stratified_variance_objective(),
variance_bounds_bernoulli_exact(),
variance_bounds_maurer_pontil(),
variance_bounds_unbounded_mom()
Examples
rect <- c(v_l1 = 0.02, v_u1 = 0.12, v_l0 = 0.01, v_u0 = 0.08)
fit <- cmr_two_arm_from_rectangle(rect)
fit$pi
#> [1] 0.5602917
fit$U_CMR
#> [1] 0.03763448
binary_rectangle_regret(0.5, rect)
#> [1] 0.06071797