[R] lookup function for density(...) objects

Prasad, Rajiv Rajiv.Prasad at pnl.gov
Fri May 11 00:27:25 CEST 2001


Hi folks:

Is there a lookup function that returns the variate given the cumulative
probability for an object returned by the density(...) function?

> mydata _ as.vector(mymatrix)
> mydata.density _ density(mydata)
> mydata.p80 _ lookup(mydata.density, p=0.8)  # is there any function to
accomplish this task?

Thanks.

Rajiv.
--------
Rajiv Prasad, Postdoctoral Research Associate, Hydrology Group
Pacific Northwest National Laboratory, P.O. Box 999, MSIN K9-33, Richland, WA
99352
Voice: (509) 375-2096    Fax: (509) 372-6089    Email: rajiv.prasad at pnl.gov


-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help 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-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._



More information about the R-help mailing list