View source: R/metapredict_predict.R
makeGlmnetArgs | R Documentation |
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.
foldid |
vector of integers |
weights |
vector of weights, such that each study is weighted equally. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.