search for: rpdensitylookup

Displaying 1 result from an estimated 1 matches for "rpdensitylookup".

2001 May 14
0
followup: lookup function for density(...) objects
.../splinefun to "lookup" the variate value for specified cumulative probability. Here's the function. Comments are welcome. -------- # # return the variate(s) for specified cumulative # probability(ies) for a density(...) object # # Rajiv Prasad (rajiv.prasad at pnl.gov) 05/14/2001 # RPDensityLookup <- function(density.obj, p=0.5, interp="l") { if(missing(density.obj)) { cat("\nUsage: RPDensityLookup(density.obj, p=0.5, interp=\"l\")") cat("\n density.obj: an object returned from the density(...) function") cat("\n p:...