smoother_fitter: Helper function

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

smoother_fitterR 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


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