getSignatureFromMultipleGlmnet: Use Lasso to do feature selection

Description Usage Arguments Value Examples

View source: R/biomarker.R

Description

Use Lasso to do feature selection

Usage

1
2
getSignatureFromMultipleGlmnet(df.input, target.vec, nfolds = 10,
  logisticRegression = TRUE, nRun = 100, alpha = 1)

Arguments

df.input

Row is sample, column is feature. Required

target.vec

y vector. Required

nfolds

glmnet CV nfolds

logisticRegression

doing logistic regression or linear regression.

nRun

number of glmnet runs

alpha

same as in glmnet

Value

signature

Examples

1
2
3
data('iris')
getSignatureFromMultipleGlmnet(iris[,1:4],
c(rep(1,100), rep(0,50)), nfolds = 3, nRun = 10)

PathoStat documentation built on Nov. 8, 2020, 5:28 p.m.