Skip to content

SurrogateParadoxTest

2.2

Empirical Testing of Surrogate Paradox Assumptions

0packages depend
2.5Kdownloads / year
test coverage
13/13checks pass

Overview

About
Maintained by Layla ParastFirst published 2024-12-083 releasesCRAN page ↗

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.

Install

Health

CRAN checks
13OK
Slowest check: 3.9 min · r-devel-windows-x86_64
Code health
None
Tests · ratio 0.00
not tracked
Coverage
100%
Documentation · exports
9
Dependencies · direct
Check history
  • OK2026-08-05
    13 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
  • NOTE2026-08-01
    12 OK · 1 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
  • OK2026-04-22
    14 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
  • ERROR2026-04-18
    13 OK · 0 NOTE · 0 WARNING · 1 ERROR · 0 FAILURE
  • OK2026-03-10
    14 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE

Documentation

Documentation
READMENoVignettesNopkgdown siteNoNEWSNoCode of conductNoContributing guideNo
Examples that run
70%
Documented parameters
100%
Return-value docs
100%
References docs
15%

Downloads

2.5K
CRAN downloads in the past year
Rank #9,995 · ~7/day · ~211/mo
Daily download trend is not available in this view yet.
20030 days
94790 days
2.5K1 year
Compare downloads with other packages →
Also on225 r2u20 autocran

Dependencies

Declared dependencies
6 external dependencies (excludes base and recommended)
Depends (1)
R >= 3.5.0
Imports (9)
statsMonotonicityTestMASSggplot2RcppsplinesparallelnumDerivMatrix
LinkingTo (2)
Suggests (0)
none
Enhances (0)
none
Reverse dependencies
0direct
0indirect

Nothing depends on this yet.

Code & Tests

Datasets

People & History

People (2)
Maintainer (1)
Author, Maintainer · added in 2.2
Authors (2)
Author, Maintainer · added in 2.2
Package Timeline

3 releases. Pick two to compare their code metrics. R releases are shown for context.

  • R
    R 4.6.0 released · 2026-04-24
  • 2.2Latest
    2026-04-12 · current release · diff ↗
  • R
    R 4.5.0 released · 2025-04-11
  • 2.0
    2025-01-21 · diff ↗
  • 1.0
    2024-12-08
  • R
    R 4.4.0 released · 2024-04-24

Package metadata

First published
2024-12-08
Total releases
3 / 2 yrs
License
GPL
Minimum R
≥ 3.5.0
Bundled data
8.0 KB / 2 files
Download size
30 KB
Installed size
not tracked yet
With dependencies
not tracked yet

Cite

Cite this package

Run in R for the authors' preferred citation:

citation("SurrogateParadoxTest")
Parast, L., & Hsiao, E. (2026). SurrogateParadoxTest: Empirical Testing of Surrogate Paradox Assumptions (Version 2.2) [Computer software]. https://doi.org/10.32614/CRAN.package.SurrogateParadoxTest

This is what citation() produces when a package has no citation file of its own. If it prints something else, use that.

Cite the R Observatory

For a number measured here: a download total, a coverage figure, an archival date.

APA

Balamuta, J. J. (2026). R Observatory: Metrics for SurrogateParadoxTest version 2.2 [Data set]. HJJB, LLC. Data release v2026-08-22. https://doi.org/10.5281/zenodo.21843040

From data release v2026-08-22, which the citation names so these numbers can be found later. More on citing and the projects behind them.

Report a problem with this page →

Privacy choices

These apply to this browser and are stored on this device only. Nothing about your choice is sent to us.

Read the privacy policy