[R] bootstrap sampling using sample
Henrique Dallazuanna
wwwhsd at gmail.com
Tue Jan 29 20:41:13 CET 2008
see ?set.seed
On 29/01/2008, Majnu John <johnm at email.chop.edu> wrote:
> Hello All,
>
> I used sample(..., replace = TRUE) repeatedly to generate 100
> bootstrap samples of a data that I'm working with. If I re-run my codes,
> it'll generate a different set of 100 bootstrap samples.
>
> Is there any way that I can get the same set of 100 bootstrap
> re-samples at each re-run of my codes? Something like setting the seed
> in a random number generator...
>
> Any help is very much appreciated.
>
> Thanks,
> Majnu
>
> [[alternative HTML version deleted]]
>
> ______________________________________________
> R-help at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
>
--
Henrique Dallazuanna
Curitiba-Paraná-Brasil
25° 25' 40" S 49° 16' 22" O
More information about the R-help
mailing list