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
if (FALSE) m <- rrenv.apweights(X, Y, 3, 2)
if (FALSE) m
L <- diag(4)
R <- matrix(1, 11, 1)
A <- matrix(0, 4, 1)
if (FALSE) test.res <- testcoef.rrenv.apweights(m, L, R, A)
if (FALSE) test.res
Run the code above in your browser using DataLab