Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

cv.rrr

Reduced-rank regression with rank selected by cross validation


Description

Reduced-rank regression with rank selected by cross validation

Usage

cv.rrr(Y, X, nfold = 10, maxrank = min(dim(Y), dim(X)),
       norder = NULL, coefSVD = FALSE)

Arguments

Y

response matrix

X

covariate matrix

nfold

number of folds

maxrank

maximum rank allowed

norder

for constructing the folds

coefSVD

If TRUE, svd of the coefficient is retuned

Value

a list containing rr estimates from cross validation

References

Chen, K., Dong, H. and Chan, K.-S. (2013) Reduced rank regression via adaptive nuclear norm penalization. Biometrika, 100, 901–920.

Examples

library(rrpack)
p <- 50; q <- 50; n <- 100; nrank <- 3
mydata <- rrr.sim1(n, p, q, nrank, s2n = 1, sigma = NULL,
                   rho_X = 0.5, rho_E = 0.3)
rfit_cv <- with(mydata, cv.rrr(Y, X, nfold = 10, maxrank = 10))
summary(rfit_cv)
coef(rfit_cv)

rrpack

Reduced-Rank Regression

v0.1-11
GPL (>= 3)
Authors
Kun Chen [aut, cre] (<https://orcid.org/0000-0003-3579-5467>), Wenjie Wang [ctb] (<https://orcid.org/0000-0003-0363-3180>), Jun Yan [ctb] (<https://orcid.org/0000-0003-4401-7296>)
Initial release
2019-11-09

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.