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