From thomas@biostat.washington.edu  Tue Aug 19 19:55:34 1997
From: thomas@biostat.washington.edu (Thomas Lumley)
Date: Tue, 19 Aug 1997 11:55:34 -0700 (PDT)
Subject: R-alpha: ECDFs
In-Reply-To: <199708191851.UAA02770@aragorn.ci.tuwien.ac.at>
Message-ID: <Pine.SUN.3.95.970819115251.28406C-100000@chekov>

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
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-


R-alpha: ECDFs
Thomas Lumley