It is easy to construct a kernel estimate for the probability density function (pdf) of a random variable given by the observation vector through:
plot(density(x))
I would like to do the same, but for log-pdf (probability density function log).
source share