Make vectors for foldid and weights to be used for leave-one-study-out
cross-validation with glmnet::glmnet()
.
makeGlmnetArgs(metadata, foldidColname = "study", sampleColname = "sample")
metadata |
|
---|---|
foldidColname | column to use for grouping observations. |
sampleColname | column that contains sample names. |
A named list.
vector of integers
vector of weights, such that each study is weighted equally.