Skip to contents

Thin interface to the EValue dispatch family (evalues.OLS, evalues.RR, evalues.OR, evalues.HR, evalues.MD), exposed under the morie_sensitivity_* namespace so MRM / paper callers can reach the full EValue surface without loading EValue directly. Pairs with e_value_rr / e_value_or / e_value_hr / e_value_d, which are the typed convenience wrappers around the same backend.

Usage

morie_sensitivity_evalue(
  estimate,
  se = NULL,
  sd = NULL,
  type = c("OLS", "RR", "OR", "HR", "MD"),
  rare = TRUE,
  true = NULL,
  ci_lower = NULL,
  ci_upper = NULL,
  ...
)

Arguments

estimate

Observed effect on the requested scale.

se

Standard error of estimate (used by "OLS" and "MD").

sd

Outcome standard deviation (required by "OLS").

type

One of "OLS" (default), "RR", "OR", "HR", "MD".

rare

Logical; only relevant for "OR" and "HR" (passed to EValue). Default TRUE (rare-outcome approximation).

true

Reference value on the appropriate scale (default 0 for OLS / MD, 1 for ratio scales).

ci_lower, ci_upper

Optional 95% CI on the same scale as estimate.

...

Additional arguments forwarded to the underlying EValue::evalues.* function.

Value

A list of class morie_sensitivity_evalue with estimate, e_value_point, e_value_ci, type, method, and raw (the full EValue matrix).

References

VanderWeele, T. J., & Ding, P. (2017). Sensitivity analysis in observational research: introducing the E-value. Annals of Internal Medicine, 167(4), 268–274.