Is there a function in R for calculating empirical cumulative distribution functions, i.e. the inverse of the quantile function? Perhaps in some library? I''d hate to have to re-invent the wheel. David Edwards, Biostatistics, Novo Nordisk A/S, Bagsværd, Denmark. DEd@novonordisk.com <mailto:DEd@novonordisk.com> Tlf: +45 44 42 62 35. Fax: +45 44 42 14 80 [[alternate HTML version deleted]]
>Is there a function in R for calculating empirical cumulative distribution >functions, i.e. the inverse of the quantile function? Perhaps in some >library? I'd hate to have to re-invent the wheel.see ecdf in the stepfun package -- St?phane DRAY --------------------------------------------------------------- Biom?trie et Biologie ?volutive - Equipe "?cologie Statistique" Universite Lyon 1 - Bat 711 - 69622 Villeurbanne CEDEX - France Tel : 04 72 43 27 56 Fax : 04 78 89 27 19 04 72 43 27 57 E-mail : dray at biomserv.univ-lyon1.fr --------------------------------------------------------------- Web http://www.steph280.freesurf.fr/ ---------------------------------------------------------------
Hi On 3 Apr 2003 at 13:20, DED (David George Edwards) wrote:> Is there a function in R for calculating empirical cumulative > distribution functions, i.e. the inverse of the quantile function? > Perhaps in some library? I'd hate to have to re-invent the wheel.try tu use search provided with the installation in my case D:\programy\R\rw1061\doc\html\search\SearchEngine.html result ecdf in Hmisc and stepfun libraries. Cheers> > > David Edwards, Biostatistics, > Novo Nordisk A/S, Bagsv?rd, Denmark. > DEd at novonordisk.com <mailto:DEd at novonordisk.com> > Tlf: +45 44 42 62 35. Fax: +45 44 42 14 80 > > > [[alternate HTML version deleted]] > > ______________________________________________ > R-help at stat.math.ethz.ch mailing list > https://www.stat.math.ethz.ch/mailman/listinfo/r-helpPetr Pikal petr.pikal at precheza.cz p.pik at volny.cz
Take a look at ecdf in package stepfun. -----Original Message----- From: DED (David George Edwards) [mailto:ded at novonordisk.com] Sent: Thursday, April 03, 2003 6:20 AM To: 'r-help at stat.math.ethz.ch' Subject: [R] cdf function: inverse to quantile? Is there a function in R for calculating empirical cumulative distribution functions, i.e. the inverse of the quantile function? Perhaps in some library? I'd hate to have to re-invent the wheel. David Edwards, Biostatistics, Novo Nordisk A/S, Bagsv?rd, Denmark. DEd at novonordisk.com <mailto:DEd at novonordisk.com> Tlf: +45 44 42 62 35. Fax: +45 44 42 14 80 [[alternate HTML version deleted]] ______________________________________________ R-help at stat.math.ethz.ch mailing list https://www.stat.math.ethz.ch/mailman/listinfo/r-help ------------------------------------------------------------------------------
library(stepfun) help(ecdf) ... although there's not a great deal involved in re-inventing it. - tom blackwell - u michigan medical school - ann arbor - On Thu, 3 Apr 2003, DED (David George Edwards) wrote:> Is there a function in R for calculating empirical cumulative distribution > functions, i.e. the inverse of the quantile function? Perhaps in some > library? I'd hate to have to re-invent the wheel. > > David Edwards, Biostatistics, > Novo Nordisk A/S, Bagsværd, Denmark. > DEd at novonordisk.com <mailto:DEd at novonordisk.com> > Tlf: +45 44 42 62 35. Fax: +45 44 42 14 80
>>>>> "Ded" == Ded (David George Edwards) <ded at novonordisk.com> >>>>> on Thu, 3 Apr 2003 13:20:25 +0200 writes:Ded> Is there a function in R for calculating empirical Ded> cumulative distribution functions, i.e. the inverse of Ded> the quantile function? Perhaps in some library? Yes: in the `stepfun' package (and already re-invented in other places) (( "package" {in R; and "library section" in other S implementations})) Ded> I'd hate to have to re-invent the wheel. good idea ;-) Martin Maechler <maechler at stat.math.ethz.ch> http://stat.ethz.ch/~maechler/ Seminar fuer Statistik, ETH-Zentrum LEO C16 Leonhardstr. 27 ETH (Federal Inst. Technology) 8092 Zurich SWITZERLAND phone: x-41-1-632-3408 fax: ...-1228 <><