Description Usage Examples
View source: R/ers.R
ERS ENET
1 2 3 4 5 6 7 8 9 10
ers.enet( x, y, lambda2, nfolds = 5, foldid, pf = rep(1, p), pf2 = rep(1, p), method = "ls" )
1 2 3 4 5 6
n = length(Y) nfold = 5 foldid = matrix(data = c(sample(n), rep(1:nfold, length = n)), nrow = n, ncol = 2) foldid = foldid[order(foldid[,1]),] p = ncol(metal) ers.enet(x = metal, y = as.numeric(Y), foldid = foldid[,2], lambda2 = seq(0.00001, 0.01, by = 0.001))
Add the following code to your website.
REMOVE THIS Copy to clipboard
For more information on customizing the embed code, read Embedding Snippets.