glmpcr.tune(y, x, M = 10, maxk = 10,
mat = NULL, ncores = 1, graph = TRUE)
alfapcr.tune
.
Jolliffe I.T. (2002). Principal Component Analysis.
Tibshirani and Tibshirani (2009). A bias correction for the minimum error rate in cross-validation. The Annals of Applied Statistics, 3(1):822-829.
pcr.tune, glm.pcr, alfa.pcr, alfapcr.tune
library(MASS)
x <- fgl[, 2:9]
y <- rpois(214, 10)
glmpcr.tune(y, x, M=10, maxk = 20, mat = NULL, ncores = 1)
Run the code above in your browser using DataLab