Skip to content
Prev 166139 / 398503 Next

Drawing from an empirical distribution

Sure, but it would be more 'fun' to modify ecdf() slightly to produce
an ecqf()  function -- essentially reversing the arguments to  
approxfun()--
and then use

	ecqf(runif(whatever))

no nit-picking about efficiency, please.


url:    www.econ.uiuc.edu/~roger            Roger Koenker
email    rkoenker at uiuc.edu            Department of Economics
vox:     217-333-4558                University of Illinois
fax:       217-244-6678                Champaign, IL 61820
On Jan 6, 2009, at 4:42 PM, Antonio, Fabio Di Narzo wrote: