I have a normalization method that uses the normal distribution functions pnorm() and qnorm(). I want to alter my logic so that I can use empirical distributions instead of assuming normality. I’ve used ecdf() to calculate the empirical cumulative distributions but then realized I was beginning to write a function that basically was the p and q versions of the empirical. Is there a simpler way to do this? Maybe a package with pecdf() and qecdf()? I hate reinventing the wheel.
I have a normalization method that uses the normal distribution functions pnorm() and qnorm().
Share
You can use the
quantileandecdffunctions to getqecdfandpecdf, respectively: