SurrogateParadoxTest: Empirical Testing of Surrogate Paradox Assumptions

Provides functions to nonparametrically assess assumptions sufficient to prevent the surrogate paradox through hypothesis tests of stochastic dominance, monotonicity of conditional mean functions, and non-negative residual treatment effect. Details are described in: Hsiao E, Tian L, and Parast L (2026). "Avoiding the surrogate paradox: an empirical framework for assessing assumptions." Journal of Nonparametric Statistics <doi:10.1080/10485252.2025.2498609>. There are also functions to assess resilience to the surrogate paradox via calculation of the resilience probability, the resilience bound, and the resilience set. Details will be available in Hsiao E, Tian L, and Parast L, "Resilience Measures for the Surrogate Paradox" (Under Review). Lastly, there is a function to assess resilience to the surrogate paradox in the met-analytic setting, described in Hsiao E and Parast L, "A Functional-Class Meta-Analytic Framework for Quantifying Surrogate Resilience" (Under Review). A tutorial for this package can be found at <https://www.laylaparast.com/surrogateparadoxtest>.

Version: 2.2
Depends: R (≥ 3.5.0)
Imports: stats, MonotonicityTest, MASS, ggplot2, Rcpp, splines, parallel, numDeriv, Matrix
LinkingTo: Rcpp, RcppArmadillo
Published: 2026-04-12
DOI: 10.32614/CRAN.package.SurrogateParadoxTest
Author: Emily Hsiao [aut], Layla Parast [aut, cre]
Maintainer: Layla Parast <parast at austin.utexas.edu>
License: GPL-2 | GPL-3 [expanded from: GPL]
NeedsCompilation: yes
CRAN checks: SurrogateParadoxTest results

Documentation:

Reference manual: SurrogateParadoxTest.html , SurrogateParadoxTest.pdf

Downloads:

Package source: SurrogateParadoxTest_2.2.tar.gz
Windows binaries: r-devel: SurrogateParadoxTest_2.0.zip, r-release: SurrogateParadoxTest_2.0.zip, r-oldrel: SurrogateParadoxTest_2.0.zip
macOS binaries: r-release (arm64): SurrogateParadoxTest_2.0.tgz, r-oldrel (arm64): SurrogateParadoxTest_2.0.tgz, r-release (x86_64): SurrogateParadoxTest_2.2.tgz, r-oldrel (x86_64): SurrogateParadoxTest_2.2.tgz
Old sources: SurrogateParadoxTest archive

Linking:

Please use the canonical form https://CRAN.R-project.org/package=SurrogateParadoxTest to link to this page.