Learn R Programming

SurrogateParadoxTest (version 2.0)

T_m: Helper function for monotonicity test

Description

Calculates the test statistic

Usage

T_m(m, X, Y)

Value

stat

Value of the test statistic

stat_vals

Vector of statistics before taking maximum

b_vals

Values of b

Q_vals

Values of Q

Arguments

m

m window size

X

Vector of X values

Y

Vector of Y values

Author

Emily Hsiao