CV.ENET: Fit a regularized linear model

Description Usage Arguments

View source: R/melonnpan_cv_enet.R

Description

Fit a regularized linear model

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
CV.ENET(
  metab = metab,
  metag = metag,
  alpha = alpha,
  lambda.choice = lambda.choice,
  nfolds = nfolds,
  foldid = foldid,
  verbose = verbose,
  plot = plot,
  outputDirectory = outputDirectory
)

Arguments

metab

Training data of metabolite relative abundances. Should have the exact same rows (subjects/samples) as metag.

metag

Training data of microbial sequence features' relative abundances. Should have the exact same rows (subjects/samples) as metab.

alpha

Grid of alpha values between 0 and 1. Default is 'seq(0.05, 0.95, 0.05)'.

lambda.choice

Choice of optimal lambda ('lambda.min' or 'lambda.1se'). Default is 'lambda.1se'.

nfolds

Number of folds for internal cross-validation. Default is 10.

foldid

A vector of values between 1 and nfold identifying what fold each observation is in.

verbose

Should progress bar be printed. Default is TRUE.

plot

Should CV error as a function of lambda be plotted. Default is FALSE.

outputDirectory

Name of the desired output directory.


biobakery/melonnpan documentation built on May 17, 2021, 3:27 a.m.