I am trying to do a cumulative distribution. I know the matlab script to do it but I can't figure out how to do it in R
Here is my matlab code :
[p2,xp2,up2] = ksdensity(X(:,2),xi,'Kernel','epanechnikov','function','cdf','Support',[m(2),M(2)]);
Any idea ?