Function for estimating the density function and its derivatives.
fhat(x_data, y_data, x, y_grid, p, q, mu, nu, h, kernel_type)
Conditional density estimate at all grid points.
Covariate dataset, vector or matrix.
Response variable dataset, vector.
Numeric vector or matrix, specifies the grid of evaluation points along x-direction.
Numeric vector, specifies the grid of evaluation points along y-direction.
Polynomial order for y.
Polynomial order for covariates.
Degree of derivative with respect to y.
Degree of derivative with respect to x.
Numeric, bandwidth vector.
Kernel function choice.