Re: [R] Empirical CDF

From: Peter Dalgaard <p.dalgaard_at_biostat.ku.dk>
Date: Fri 30 Jun 2006 - 17:41:22 EST

<Augusto.Sanabria@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@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@biostat.ku.dk)                  FAX: (+45) 35327907

______________________________________________
R-help@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
Received on Fri Jun 30 17:47:55 2006

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.1.8, at Fri 30 Jun 2006 - 20:13:40 EST.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.