Kernel Regression function
kernel_reg.RdKernel Regression function
Arguments
- X
A numerical vector representing the sample data of variable X.
- Y
A numerical vector representing the sample data of variable Y.
- x
The point at which the regression function is to be estimated.
- h
A bandwidth parameter that determines the weight assigned to each observation in X.
- kernel_func
A function that computes the weight of each observation based on its distance to x.