Learn R Programming

SurrogateParadoxTest (version 2.0)

calculate_bandwidth: Helper function for kernel smoother

Description

Calculates the appropriate bandwidth for Nadaraya-Watson kernel smoother.

Usage

calculate_bandwidth(s)

Value

Desired bandwidth for kernel smoother.

Arguments

s

Vector of surrogate values.

Author

Emily Hsiao