On Thu, 4 Dec 2008, Spiderschwein wrote:
Say F_n is my ecdf, generated from my sample x.
With sample(x, 2000, replace = TRUE) I get a uniformly distributed sample
from x.
Which is not the same as uniformly from unique(x).
But I need a (re)sample, which is F_n distributed.
Now I'm confused,
Say F_n is my ecdf, generated from my sample x.
With sample(x, 2000, replace = TRUE) I get a uniformly distributed sample
from x.
But I need a (re)sample, which is F_n distributed.
Now I'm confused, if that makes a difference or not...
Regards,
Martin
Dimitris Rizopoulos-4 wrote:
>
> say 'x'
say 'x' is your sample, then try
sample(x, 2000, replace = TRUE)
I hope it helps.
Best,
Dimitris
Spiderschwein wrote:
Good day everyone,
I have about 500 values to generate my ecdf.
Now I want to sample 2000 values i.i.d. distributed according to my ecdf.
Is it possible to sample from an
Good day everyone,
I have about 500 values to generate my ecdf.
Now I want to sample 2000 values i.i.d. distributed according to my ecdf.
Is it possible to sample from an ecdf?
If yes, I would appreciate your help.
Martin
--
View this message in context:
http://www.nabble.com/Resampling-fro
4 matches
Mail list logo