[R] Empirical CDF

Peter Dalgaard p.dalgaard at biostat.ku.dk
Fri Jun 30 09:41:22 CEST 2006


<Augusto.Sanabria at ga.gov.au> writes:

> Good day everyone,
> 
> I want to assess the error when fitting a Gram-Charlier
> CDF to some data 'ws', that is, I want to calculate:
> 
>      Err = |ecdf(ws) - GCh_ser(ws)|
> 
> The problem is, I cannot get the F(x) values from the
> ecdf.
> 
> 'Summary(ecdf())' returns some of the x-axis values,
> but how do you get the F(x) values?

By applying the function returned by ecdf?

Fn <- ecdf(some.data)
Fn(some.other.data)

should work. 
 
> Thank you for any help you can provide.
> 
> Regards,
> 
> Augusto
> 
> 
> --------------------------------------------
> Augusto Sanabria. MSc, PhD.
> Mathematical Modeller
> Risk Research Group
> Geospatial & Earth Monitoring Division
> Geoscience Australia (www.ga.gov.au)
> Cnr. Jerrabomberra Av. & Hindmarsh Dr.
> Symonston ACT 2609
> Ph. (02) 6249-9155
> 
> ______________________________________________
> R-help at stat.math.ethz.ch mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
> 

-- 
   O__  ---- Peter Dalgaard             Øster Farimagsgade 5, Entr.B
  c/ /'_ --- Dept. of Biostatistics     PO Box 2099, 1014 Cph. K
 (*) \(*) -- University of Copenhagen   Denmark          Ph:  (+45) 35327918
~~~~~~~~~~ - (p.dalgaard at biostat.ku.dk)                  FAX: (+45) 35327907



More information about the R-help mailing list