To resolve issues starting MATLAB on Mac OS X 10.10 (Yosemite) visit: http://www.mathworks.com/matlabcentral/answers/159016
I'm trying to use the kernal smoothing density function
What would the correct syntax be if I'm trying to smooth a vector x, with kernel epanechnikov with a width of 3?
Is it something like this?
[...] = ksdensity(x,kernel,epanechnikov,width, 3)
What would go on the right hand side of the equal sign?
No products are associated with this question.
John, all you are missing is quotes:
BUT: you say, "if I'm trying to smooth a vector", which makes me think that maybe you're thinking that this is kernel smoothing, rather than kernel density estimation. KSDENSITY takes one vector containing a sample from some unknown distribution, and returns an estimate of the density of that distibution. Kernel smoothing, which KSDENSITY doesn't do, is a non-parametric regression method that takes two (or maybe more) vectors.
Hope this helps.