[R] Extracting x-values from an ecdf

Dieter Menne dieter.menne at menne-biomed.de
Fri Nov 16 19:39:46 CET 2007


Benjamin Zuckerberg <bzuckerb <at> syr.edu> writes:

> After having produced a cumulative distribution using ecdf, I would  
> like to extract the exact x-value for a given percentile.  For example  
> I can ascertain the 1st and 3rd quartile using the summary function:
> 
> cawa.cdp <- ecdf(cawaocc$LEFF80)
> plot(cawa.cdp, ylab="Fn(x)")
> summary(cawa.cdp)

Well, if you tell me what type of Kava cawaocc$LEFF80 is? Please: Be poltite,
check the posting guide: examples should be self running.

set.seed(4711)
kn = knots(ecdf(rnorm(100)))
kn[50]


Dieter



More information about the R-help mailing list