ers.enet: ERS ENET

Description Usage Examples

View source: R/ers.R

Description

ERS ENET

Usage

 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"
)

Examples

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))

umich-biostatistics/ers documentation built on Oct. 29, 2020, 8:15 a.m.