S: Helper function

View source: R/test-script-2025-01-20.r

SR Documentation

Helper function

Description

Helper function for monotonicity test.

Usage

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

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

Value

Mean-squared error

Author(s)

Emily Hsiao


SurrogateParadoxTest documentation built on April 4, 2025, 5:11 a.m.