Runs the test of non-negative residual treatment effect given two sets of surrogate and primary endpoint values.
nnr_test(s0, y0, s1, y1, n_bootstrap = 200, alpha = 0.05)
p-value of test.
Whether the test rejects the null hypothesis.
Calculated value of test statistic.
Vector of bootstrapped values of test statistic.
Vector of surrogate values in control group.
Vector of endpoint values in control group.
Vector of surrogate values in treatment group.
Vector of endpoint values in treatment group.
Desired number of bootstrap samples.
Desired alpha level of test.
Emily Hsiao
Hsiao et all 2024 (Under review)