Unlimited learning, half price | 50% off

Last chance! 50% off unlimited learning

Sale ends in


secure (version 0.6)

rrr.fit: Fit reduced rank regression

Description

fit multivariate reduced rank regression for a specified rank.

Usage

rrr.fit(Y, X, nrank = nrank)

Arguments

Y

a matrix of response (n by q)

X

a matrix of covariate (n by p)

nrank

an integer specifying the desired rank

Value

coef

reduced rank estimate

Examples

Run this code
# NOT RUN {
#require(secure)
Y <- matrix(rnorm(400), 100, 4)
X <- matrix(rnorm(800), 100, 8)
rrr.fit <- rrr.fit(Y, X, nrank = 3)
# }

Run the code above in your browser using DataLab