Helper function for monotonicity test; should not be called directly by user.
Usage
Q(r, s, X)
Value
Q
Arguments
r
Index to start summation.
s
Index to end summation.
X
Vector of X values over which to sum.
Author
Emily Hsiao
References
Hall, Peter, and Nancy E. Heckman. "Testing for monotonicity of a regression mean by calibrating for linear functions." Annals of Statistics (2000): 20-39.