Estimate a proxy-outcome rectangle, widen it using the bridge radius zeta,
and return the CMR treatment share for the primary-outcome design.
Usage
cmr_proxy(
proxy_y,
d,
zeta,
alpha = 0.05,
method = c("auto", "bounded", "bernoulli", "maurer_pontil", "mp", "bernoulli_exact",
"martinez_taboada_ramdas", "mtr"),
beta = NULL,
correction = c("bonferroni", "sidak_arms"),
normalize = FALSE,
lower = NULL,
upper = NULL,
na.rm = TRUE,
tol = 1e-11
)
cmr_delayed_outcome(
proxy_y,
d,
zeta,
alpha = 0.05,
method = c("auto", "bounded", "bernoulli", "maurer_pontil", "mp", "bernoulli_exact",
"martinez_taboada_ramdas", "mtr"),
beta = NULL,
correction = c("bonferroni", "sidak_arms"),
normalize = FALSE,
lower = NULL,
upper = NULL,
na.rm = TRUE,
tol = 1e-11
)Arguments
- proxy_y
Pilot proxy or delayed primary outcomes.
- d
Pilot treatment indicator; treatment is
1and control is0.- zeta
Nonnegative standard-deviation bridge radius. Provide a scalar shared across arms or a treatment/control pair.
- 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 endpoint error allocation. If
NULL, error is split according tocorrection.- correction
Endpoint error correction, either
"bonferroni"or"sidak_arms".- normalize
If
TRUE, normalize bounded proxy outcomes to[0, 1]before computing variances. For guarantee-bearing bounded CMR on a non-unit scale, provide knownlowerandupperbounds.- lower, upper
Optional lower and upper outcome bounds used when
normalize = TRUE. If either is omitted, the pilot minimum and/or maximum is used with a warning; that data-dependent normalization is exploratory and does not carry the finite-sample bounded-outcome CMR guarantee.- na.rm
If
TRUE, drop rows with missingproxy_yord.- tol
Numerical tolerance for exact Bernoulli bound inversion.
Value
A list of class cmr_proxy and cmr_two_arm with treatment share pi,
CMR certificate U_CMR, widened confidence rectangle, pilot summaries,
zeta, bridge diagnostics, endpoint error allocation, and method metadata.