[R] bootstraping

Rafael Bertola stat at estadao.com.br
Wed Jun 12 18:10:18 CEST 2002


I´ve got a problem:

I have two samples
x <- rnorm(30, 0,1)
y <- rnorm(30,0.1,1)

and i want to test the equality of them.
Here i've got a problem:
w <- c(x, y)
r <- bootstrap(w,100, mean)  # from the bootstrap package

and save the values r$thetastar

But i do H0: Fx=Fy so i create w and after this i wish to separate the
bootstraped values of w into two new population xb e yb and in this
values calculate the mean. How i do that?

thanks & sorow by my english

Rafael Bertola
Undergraduate in Statistics at UNICAMP - Brasil
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch

More information about the R-help mailing list