predictLogisticModel: This function is for an older version of MethylPipeR and is...

View source: R/pipeline_modules.R

predictLogisticModelR 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. Outputs predictions given a logistic model, data and labels.

Description

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. Outputs predictions given a logistic model, data and labels.

Usage

predictLogisticModel(
  model,
  xs,
  pipelineRunInformation,
  modelLabel,
  predictType = "class"
)

Arguments

model

A glmnet logistic regression model.

xs

A matrix/data.frame corresponding to X variables. Columns should correspond to features.

pipelineRunInformation

The object originally created by beginPipelineRun

modelLabel

A string that will act as a label for this function call. The label will be used as a prefix for the saved object file names in this function call.

predictType

A string specifying the prediction type ('class' or 'response').

Value

A vector of model predictions.


marioni-group/MethylPipeR documentation built on Oct. 10, 2024, 3:32 p.m.