Calculates the value of the test statistic in the NNR test.
modified_S_stat(mu0_hat, mu1_hat, s0, y0, s1, y1, grid_x, boot = FALSE)
Value of the test statistic
Value of the supremum over grid_x
Kernel-smoothed estimate of \(\mu_0\) function.
Kernel-smoothed estimate of \(\mu_1\) function.
Vector of surrogate values in control group.
Vector of endpoint values in control group.
Vector of surrogate values in treatment group.
Vector of endpoing values in the treatment group.
Values of s over which supremum is calculated.
Whether this is a bootstrapped statistic or the test statistic.
Emily Hsiao