Abstract: The marginalizedRisk R package provides a robust framework for estimating disease risk as a function of a specific biomarker by integrating over other covariates in a conditional risk model. This approach allows researchers to derive population-level risk curves from complex regression models, facilitating the identification of correlates of protection in clinical trials.
Introduction
In clinical research, particularly vaccine trials, identifying "correlates of protection" is a primary goal. These biomarkers, such as antibody titers, serve as predictors for a patient's risk of infection. However, clinical risk is rarely isolated to a single marker; it is typically confounded by a variety of covariates including age, sex, and baseline health status.
Standard regression models provide "conditional" risk—the risk for a specific individual with a specific set of covariates. While useful, these results are difficult to generalize. The marginalizedRisk package addresses this by "marginalizing" the risk: integrating the conditional risk model over the distribution of all other covariates to reveal the population-level relationship between the biomarker and the clinical outcome.
Methods and Implementation
The package implements several statistical techniques to bridge the gap between complex regression and interpretable risk curves.
Marginalization via Integration
The core functionality involves taking a fitted regression object, such as a Cox proportional hazards model, and integrating the risk over the covariate vector $Z$. This process allows for the visualization of risk as a function of the marker $S$ alone. The package supports various marker types through specific functions:
- Continuous Markers: Handled via
marginalized.risk.cont. - Categorical Markers: Handled via
marginalized.risk.cat. - Threshold Analysis: The
marginalized.risk.thresholdfunction estimates risk for individuals whose marker values exceed a specific level ($S \ge s$).
Sensitivity Analysis and E-values
To account for potential unmeasured confounding, the package includes tools for sensitivity analysis based on the work of Gilbert et al. (2020). The bias.factor and E.value functions quantify how robust an observed association is. An E-value represents the minimum strength of association an unmeasured confounder would need to have with both the marker and the outcome to nullify the observed effect.
Sampling Weights
marginalizedRisk supports inverse probability sampling weights. This is critical for Phase 2 sub-studies or case-cohort designs where biomarker data is only available for a subset of the total study population.
Practical Application
While the package is a software tool, its utility is demonstrated using the lung dataset from the R survival package. In this context, the software can estimate survival probability as a function of weight loss while marginalizing over age, sex, and physical performance scores. This transition from a "black box" regression to a clear population-level risk curve is vital for public health decision-making.
Key Results and Outputs
The package generates two primary outputs:
- Marginalized Risk Curves: Visualizations showing how the probability of an event changes across the range of a biomarker, adjusted for all covariates.
- Confidence Bands: The documentation provides examples of using the Efron bootstrap method to generate 95% confidence intervals, ensuring that estimation uncertainty is properly communicated.
Limitations
The accuracy of the marginalized risk is inherently dependent on the quality of the underlying conditional risk model. If the initial regression (e.g., the Cox model) is misspecified or omits critical variables, the resulting marginalized risk will remain biased. Currently, the package is optimized for survival analysis and Cox models; future work may expand these techniques to more computationally intensive machine learning models.
Summary updated