mcv.FLORAL {FLORAL} | R Documentation |
Summarizing selected compositional features over multiple cross validations
Description
Summarizing FLORAL
outputs from multiple random k-fold cross validations
Usage
mcv.FLORAL(
mcv = 10,
ncore = 1,
seed = NULL,
x,
y,
ncov = 0,
family = "gaussian",
longitudinal = FALSE,
id = NULL,
tobs = NULL,
failcode = NULL,
length.lambda = 100,
lambda.min.ratio = NULL,
ncov.lambda.weight = 0,
a = 1,
mu = 1,
ncv = 5,
intercept = FALSE,
step2 = TRUE,
progress = TRUE,
plot = TRUE
)
Arguments
mcv |
Number of random 'ncv'-fold cross-validation to be performed. |
ncore |
Number of cores used for parallel computation. Default is to use only 1 core. |
seed |
A random seed for reproducibility of the results. By default the seed is the numeric form of |
x |
Feature matrix, where rows specify subjects and columns specify features. The first |
y |
Outcome. For a continuous or binary outcome, |
ncov |
An integer indicating the number of first |
family |
Available options are |
longitudinal |
|
id |
If |
tobs |
If |
failcode |
If |
length.lambda |
Number of penalty parameters used in the path |
lambda.min.ratio |
Ratio between the minimum and maximum choice of lambda. Default is |
ncov.lambda.weight |
Weight of the penalty lambda applied to the first |
a |
A scalar between 0 and 1: |
mu |
Value of penalty for the augmented Lagrangian |
ncv |
Folds of cross-validation. Use |
intercept |
|
step2 |
|
progress |
|
plot |
|
Value
A list with relative frequencies of a certain feature being selected over mcv
ncv
-fold cross-validations.
Author(s)
Teng Fei. Email: feit1@mskcc.org
References
Fei T, Funnell T, Waters N, Raj SS et al. Scalable Log-ratio Lasso Regression Enhances Microbiome Feature Selection for Predictive Models. bioRxiv 2023.05.02.538599.
Examples
set.seed(23420)
dat <- simu(n=50,p=30,model="linear")
fit <- mcv.FLORAL(mcv=2,ncore=1,x=dat$xcount,y=dat$y,ncv=2,progress=FALSE,step2=TRUE,plot=FALSE)