Estimate an effective two-arm variance rectangle for multiple outcomes and return the CMR treatment share.
Arguments
- y
Pilot outcomes as a numeric matrix, data frame, or vector. Rows are units and columns are outcomes.
- d
Pilot treatment indicator; treatment is
1and control is0.- weights
Optional nonnegative outcome weights. If
NULL, equal weights are used.- estimand
Either
"coprimary"or"index".- alpha
Target joint error level.
- method
Confidence-set method.
"auto"chooses exact Bernoulli bounds for 0/1 outcomes and bounded Maurer–Pontil bounds otherwise.- beta
Optional scalar endpoint error allocation.
- na.rm
If
TRUE, drop rows with missingyord.- tol
Numerical tolerance for exact Bernoulli bound inversion.
Value
A list of class cmr_multiple_outcomes and cmr_two_arm with treatment
share pi, CMR certificate U_CMR, effective confidence rectangle, pilot
summaries, outcome weights, estimand metadata, endpoint error allocation, and
diagnostics.