smoother_fitter {SurrogateParadoxTest} | R Documentation |
Helper function
Description
Nadaraya-Watson kernel smoother
Usage
smoother_fitter(X, Y, kernel = gaussian_kernel, h)
Arguments
X |
Vector of X values |
Y |
Vector of Y values |
kernel |
Kernel to use in the kernel smoother; defaults to Gaussian kernel |
h |
Bandwidth |
Value
Returns a function which is the smoothed function; input takes in an x value.
Author(s)
Emily Hsiao
[Package SurrogateParadoxTest version 1.0 Index]