The grid where we want to evaluate the density. Chosen
suitably if not provided, with length equal to grid_size.
grid_size
Number of grid points if grid is not provided.
Value
A list including the data set $x, the grid
$eval_points, the bandwidth $bw, as well as a matrix of the
estimated parameter estimates $par_est and the estimated bivariate
density $f_est.
Details
This function is mainly mean to be used as a tool in multivariate analysis as
away to obtain the estimate of a univariate (marginal) density function, but
it can of course be used in general to estimate univariate densities.
References
Hufthammer, Karl Ove, and Dag Tj<U+00F8>stheim. "Local Gaussian Likelihood and Local
Gaussian Correlation" PhD Thesis of Karl Ove Hufthammer, University of
Bergen, 2009.