data(vehicles)
X <- vehicles[, 1:11]
Y <- vehicles[, 12:15]
X <- scale(X)
Y <- scale(Y) # The scales of Y are vastly different, so scaling is reasonable here
B <- 10
if (FALSE) bootse <- boot.rrenv.apweights(X, Y, 3, 2, B)
if (FALSE) bootse
Run the code above in your browser using DataLab