Learn R Programming

SurrogateParadoxTest (version 2.0)

nnr_test: Non-negative residual treatment effect function

Description

Runs the test of non-negative residual treatment effect given two sets of surrogate and primary endpoint values.

Usage

nnr_test(s0, y0, s1, y1, n_bootstrap = 200, alpha = 0.05)

Value

p_value

p-value of test.

reject

Whether the test rejects the null hypothesis.

s_hat

Calculated value of test statistic.

s_vec

Vector of bootstrapped values of test statistic.

Arguments

s0

Vector of surrogate values in control group.

y0

Vector of endpoint values in control group.

s1

Vector of surrogate values in treatment group.

y1

Vector of endpoint values in treatment group.

n_bootstrap

Desired number of bootstrap samples.

alpha

Desired alpha level of test.

Author

Emily Hsiao

References

Hsiao et all 2024 (Under review)