Estimate a median-of-means variance rectangle from raw pilot outcomes and return the unbounded-outcome CMR assignment.
Arguments
- y
Pilot outcomes.
- d
Pilot treatment indicator; treatment is
1and control is0.- psi
Bounded-kurtosis parameter, either a scalar shared across arms or a treatment/control pair.
- alpha
Target joint error level. Each arm uses
variance_bounds_unbounded_mom()with this samealpha, whose median-of-means block count gives one-arm error at mostalpha / 2; the union bound over treatment and control yields the reported joint error boundalpha.- na.rm
If
TRUE, drop rows with missingyord.
Value
A list of class cmr_unbounded and cmr_two_arm. If both one-arm bounds are
active, the object contains pi, finite U_CMR, rectangle, pilot summaries,
and diagnostics. If the pilot is inactive, the function returns balance
(pi = 0.5) with U_CMR = Inf and diagnostics explaining the fallback.