powered by
This function outputs dimensions selected by Akaike information criterion (AIC), Bayesian information criterion (BIC).
u.senv(X, Y)
Predictors. An n by p matrix, p is the number of predictors. The predictors can be univariate or multivariate, discrete or continuous.
Multivariate responses. An n by r matrix, r is the number of responses and n is number of observations. The responses must be continuous variables.
Dimension of the scaled envelope subspace selected by AIC.
Dimension of the scaled envelope subspace selected by BIC.
AIC value for dimension from 0 to r.
BIC value for dimension from 0 to r.
# NOT RUN { data(sales) X <- sales[, 1:3] Y <- sales[, 4:7] u <- u.senv(X, Y) u # }
Run the code above in your browser using DataLab