Function for estimating the density function and its derivatives.
lpcde_fn(
y_data,
x_data,
y_grid,
x,
p,
q,
p_RBC,
q_RBC,
bw,
mu,
nu,
cov_flag,
kernel_type,
rbc = FALSE
)
Conditional density estimate at all grid points.
Response variable dataset, vector.
Covariate dataset, vector or matrix.
Numeric vector, specifies the grid of evaluation points along y-direction.
Numeric vector or matrix, specifies the grid of evaluation points along x-direction.
Polynomial order for y.
Polynomial order for covariates.
Nonnegative integer, specifies the order of the local polynomial for Y
used to
construct bias-corrected point estimates. (Default is p+1
.)
Nonnegative integer, specifies the order of the local polynomial for X
used to
construct bias-corrected point estimates. (Default is q+1
.)
Numeric, bandwidth vector.
Degree of derivative with respect to y.
Degree of derivative with respect to x.
Flag for covariance estimation option.
Kernel function choice.
Boolean for whether to return RBC estimate and standard errors.