[R] how to generate a random data from a empirical distribition

David Winsemius dwinsemius at comcast.net
Tue Jul 27 00:56:26 CEST 2010


On Jul 26, 2010, at 2:36 PM, xin wei wrote:

>
> hi, this is more a statistical question than a R question. but I do  
> want to
> know how to implement this in R.
> I have 10,000 data points. Is there any way to generate a empirical
> probablity distribution from it (the problem is that I do not know  
> what
> exactly this distribution follows, normal, beta?).

?ecdf

> My ultimate goal is to
> generate addition 20,000 data point from this empirical distribution  
> created
> from the existing 10,000 data points.
> thank you all in advance.
>
-- 
David Winsemius, MD
Heritage Laboratories
West Hartford, CT



More information about the R-help mailing list