[R] sampling

Liaw, Andy andy_liaw at merck.com
Fri Dec 3 19:47:28 CET 2004


Yes, by bootstrapping the index.  E.g., if the pairs are in x and y, you can
do something like:

ind <- sample(length(x))
x.boot <- x[ind]
y.boot <- y[ind]

Andy

> From: su su
> 
> Hi:
> I wonder if there is a way to resample paired value to do bootstrip?
> 
> Thanks!
> 
> ______________________________________________
> R-help at stat.math.ethz.ch mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide! 
> http://www.R-project.org/posting-guide.html
> 
>




More information about the R-help mailing list