Learn R Programming

Renvlp (version 3.4.5)

u.env.apweights: Select the dimension of env.apweights

Description

This function outputs dimensions selected by Akaike information criterion (AIC), Bayesian information criterion (BIC) and likelihood ratio testing with specified significance level for the response envelope model that accommodates nonconstant variance.

Usage

u.env.apweights(X, Y, alpha = 0.01)

Value

u.aic

Dimension of the envelope subspace selected by AIC.

u.bic

Dimension of the envelope subspace selected by BIC.

u.lrt

Dimension of the envelope subspace selected by the likelihood ratio testing procedure.

loglik.seq

Log likelihood for dimension from 0 to r.

aic.seq

AIC value for dimension from 0 to r.

bic.seq

BIC value for dimension from 0 to r.

Arguments

X

Predictors. An n by p matrix, p is the number of predictors. The predictors can be univariate or multivariate, discrete or continuous.

Y

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.

alpha

Significance level for testing. The default is 0.01.

Examples

Run this code
data(concrete)
X <- concrete[, 1:7]
Y <- concrete[, 8:10]
if (FALSE) u <- u.env.apweights(X, Y)
if (FALSE) u

Run the code above in your browser using DataLab