View source: R/test-script-2025-01-20.r
nnr_test | R Documentation |
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)
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. |
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. |
Emily Hsiao
Hsiao et all 2024 (Under review)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.