View source: R/pipeline_modules.R
fitLogisticModel | R Documentation |
This function is for an older version of MethylPipeR and is now deprecated. It is currently still included to allow old scripts to run correctly. Fits a penalised logistic regression model with cross-validation.
fitLogisticModel(
xs,
y,
penalty,
weights,
nFoldsCV = 3,
foldID = NULL,
pipelineRunInformation,
modelLabel,
prescaled = FALSE,
typeMeasure = "default",
penaltyFactor = NULL
)
xs |
A matrix/data.frame corresponding to X variables. Columns should correspond to features. |
y |
A matrix/data.frame with a column named 'Event' corresponding to a binary label. |
penalty |
|
weights |
A vector of weights corresponding to the training data rows to be used in model fitting. |
nFoldsCV |
The number of folds to be used in cross-validation (default is 3) |
foldID |
A vector of numbers specifying a cross-validation fold. Each
entry should correspond to a row in |
pipelineRunInformation |
The object originally created by
|
modelLabel |
A string that will act as a label for this function call. The label will be used as a prefix in the 'penalty' and 'number of folds' entries in pipeline.run.information. It will also be used as a prefix for the saved object filenames in this function call. |
prescaled |
A boolean specifying if the columns in |
typeMeasure |
A string specifying the argument to type.measure in
|
penaltyFactor |
A vector of numbers indicating variable-specific weights for the lambda penalty. |
The glmnet logistic model object.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.