Learn R Programming

SurrogateParadoxTest (version 2.0)

Empirical Testing of Surrogate Paradox Assumptions

Description

Provides functions to nonparametrically assess assumptions necessary to prevent the surrogate paradox through hypothesis tests of stochastic dominance, monotonicity of regression functions, and non-negative residual treatment effects. More details are available in Hsiao et al 2025 (under review). A tutorial for this package can be found at .

Copy Link

Version

Install

install.packages('SurrogateParadoxTest')

Monthly Downloads

139

Version

2.0

License

GPL

Maintainer

Emily Hsiao

Last Published

January 20th, 2025

Functions in SurrogateParadoxTest (2.0)

modified_S_stat

Helper function for non-negative residual treatment effect test.
gaussian_kernel

Helper function for kernel smoother
monotonicity_test

Monotonicity test
barrett_donald_cutoff

Helper function for stochastic dominance test
Q

Helper function for monotonicity test
barrett_donald_p

Helper function for stochastic dominance test
S

Helper function
nnr_test

Non-negative residual treatment effect function
sd_test

Stochastic dominance test function
T_m

Helper function for monotonicity test
calculate_bandwidth

Helper function for kernel smoother
smoother_fitter

Helper function
a_b_hat

Helper function
test_assumptions

Test assumptions to prevent surrogate paradox