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