Computes the point estimate using the specified kernel function.
Usage
get_avg_fyx(Y, X, x, h, inf_k)
Arguments
- Y
A numerical vector representing the sample data of variable Y.
- X
A numerical vector representing the sample data of variable X.
- x
A scalar representing the point where the density is estimated.
- h
A scalar bandwidth parameter.
- inf_k
Kernel function used for the computation.
Value
A scalar representing the kernel density estimate at point x.