[R] Drawing from an empirical distribution

culpritNr1 ig2ar-saf1 at yahoo.co.uk
Tue Jan 6 23:39:17 CET 2009


Hi All,

Does anybody know if there is a simple way to draw numbers from an empirical
distribution?

I know that I can plot the empirical cumulative distribution function this
easy:
plot(ecdf(x))

Now I want to pick a number between 0 and 1 and go back to domain of x.
Sounds simple to me.

Any suggestion?

Thank you,

Your culprit
(everybody needs a culprit)


-- 
View this message in context: http://www.nabble.com/Drawing-from-an-empirical-distribution-tp21320810p21320810.html
Sent from the R help mailing list archive at Nabble.com.




More information about the R-help mailing list