Learn R Programming

SurrogateParadoxTest (version 2.0)

S: Helper function

Description

Helper function for monotonicity test.

Usage

S(a, b, r, s, X, Y)

Value

Mean-squared error

Arguments

a

Value of a (regression coefficient)

b

Value of b (regression coefficient)

r

Index to start summation

s

Index to end summation

X

Vector of X values

Y

Vector of Y values

Author

Emily Hsiao