Stixbox Function plotdens - Draw a nonparametric density estimate
Calling Sequence
- plotdens(X)
- plotdens(X,h,P,K)
Parameters
- x,y
: two matrices or vectors.
Description
Draw a nonparametric density estimate.
A density estimate is plotted using a kernel density estimate. A
longer form plotdens(X,h,P,K) may be used where
h
: is the kernel bandwidth,
P
: is 1 if the density is known to be 0 for negative X,
K
: is
1
: Gaussian (the default)
2
: Epanechnikov
3
: Biweight
4
: Triangular
Below the density estimate a jittered plot of the observations is
shown.
See Also