copcor: Correlates of Protection and Correlates of Risk Functions

Yiwen He, Chenchen Yu, Bhavesh Borate, Peter B. GilbertOpenalex Unknown 2023 · DOI · OpenAlex

Abstract

Correlates of protection (CoP) and correlates of risk (CoR) study the immune biomarkers associated with an infectious disease outcome, e.g. COVID or HIV-1 infection. This package contains shared functions for analyzing CoP and CoR, including bootstrapping procedures, competing risk estimation, and bootstrapping marginalized risks.

Introduction

In the field of vaccine research, identifying "correlates"—biomarkers such as antibody levels that statistically associate with protection against a disease—is a primary objective. These correlates are essential for understanding vaccine efficacy, guiding the development of boosters, and establishing benchmarks for new vaccine candidates. However, the statistical analysis of these biomarkers is complicated by the presence of competing risks and the complex demographic stratification common in large-scale clinical trials, such as the Moderna COVE (COVID-19) study.

The copcor R package addresses these challenges by providing a specialized toolkit for researchers. It streamlines the calculation of Correlates of Protection (CoP) and Correlates of Risk (CoR) through robust functions for competing risk estimation, bootstrapping, and tailored data visualization.

Methodology

Competing Risk Estimation

A central feature of the package is the predictCompetingRisk function. In survival analysis, researchers often encounter "competing risks," where an event other than the primary outcome of interest occurs (e.g., a participant exiting a study for unrelated reasons). Standard survival analysis can become biased in these scenarios.

copcor implements two primary approaches to calculate the Cumulative Incidence Function (CIF). The recommended method involves fitting cause-specific Cox models to every possible outcome, which provides greater numerical stability than modeling a single "overall failure" rate. This approach is particularly critical as the risk of an event increases or the follow-up duration grows, as standard survival estimates (1 - survival probability) and the CIF begin to diverge significantly.

Parameters for competing risk estimation functions, including formula lists and time-to-event specifications.

Biomarker-Specific Visualization

Visualizing biomarker data requires handling specific assay constraints, such as the "Limit of Detection" (LOD) or "Lower Limit of Quantitation" (LLOX). The package includes helper functions like draw.x.axis.cor designed to manage these limits, ensuring that visualizations accurately reflect the sensitivity of the assays used in clinical trials.

Parameters for biomarker-specific plotting helper functions, supporting lower limit of detection (LLOX) labeling.

Implementation and Performance

Vectorized R Logic

While many survival analysis tools rely on compiled C code for performance, copcor utilizes a vectorized implementation in native R using matrix operations. This design choice allows the package to outperform some C-based alternatives, such as riskRegression, in specific matrix-heavy scenarios. While this trades off speed for higher memory usage, it offers the advantage of being more accessible for statisticians to audit and modify without requiring deep expertise in C.

Strata Management

To support the specific requirements of the Moderna COVE vaccine correlates study, the package includes dedicated functions like cove.boost.collapse.strata. This allows researchers to effectively collapse demographic strata, ensuring statistical power and accuracy when reporting on complex, stratified trial data.

Key Results and Validation

The package provides a reliable framework for calculating the risk of infection up to a specific time point ($t_0$). Validation tests show that the package's pcr (predict competing risk) function successfully matches standard Kaplan-Meier estimates when no covariates are present, serving as a critical sanity check for its more complex regression capabilities. Furthermore, the vectorized approach facilitates rapid bootstrapping, which is essential for calculating confidence intervals for the marginalized risks often reported in clinical trial outcomes.

Discussion and Limitations

While powerful, the copcor package's reliance on large-scale matrix operations in R results in a higher memory overhead compared to iterative C-based implementations. This may present a bottleneck when processing extremely large datasets on limited hardware. Additionally, many of its utility functions are highly specialized for the COVE and HIV-1 trial pipelines, which may limit its general utility for researchers outside of infectious disease epidemiology. However, its integration into broader correlates reporting repositories suggests it will remain a cornerstone for automated clinical trial reporting pipelines.

Summary updated

Abstract

Correlates of protection (CoP) and correlates of risk (CoR) study the immune biomarkers associated with an infectious disease outcome, e.g. COVID or HIV-1 infection. This package contains shared functions for analyzing CoP and CoR, including bootstrapping procedures, competing risk estimation, and bootstrapping marginalized risks.
BibTeX
@inproceedings{he2023copcor,
  author = {Yiwen He and Chenchen Yu and Bhavesh Borate and Peter B. Gilbert},
  title = {{copcor: Correlates of Protection and Correlates of Risk Functions}},
  booktitle = {Openalex Unknown},
  year = {2023},
  doi = {10.32614/cran.package.copcor},
}
Figure