R-alpha: ECDFs
On Tue, 19 Aug 1997, Kurt Hornik wrote:
Here's something what is needed for teaching elementary statistics: Given a sample vector x, compute the corresponding ECDF, plot it, and perhaps evaluate it at points other than the data points.
The approx() function is supposed to do this (it currently only does linear interpolation). If the right and left continuous step functions were added to approx then we could easily use approxfun to define the ECDF as a function closure, making it automatically available at any point you want. After all, the ECDF *is* a function. Thomas Lumley ------------------------------------------------------+------ Biostatistics : "Never attribute to malice what : Uni of Washington : can be adequately explained by : Box 357232 : incompetence" - Hanlon's Razor : Seattle WA 98195-7232 : : ------------------------------------------------------------ =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- r-devel mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html Send "info", "help", or "[un]subscribe" (in the "body", not the subject !) To: r-devel-request@stat.math.ethz.ch =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-