Draw a nonparametric density estimate
plotdens(X) plotdens(X,h,P,K)
two matrices or vectors.
is the kernel bandwidth,
is 1 if the density is known to be 0 for negative X,
1: Gaussian (the default)
2: Epanechnikov
3: Biweight
4: Triangular
Draw a nonparametric density estimate. A density estimate is plotted using a kernel density estimate.
Below the density estimate a jittered plot of the observations is shown.