View source: R/get_logiModel.R
get_logiModel | R Documentation |
This function fits a logistic regression model to the given data.
get_logiModel(data.sig, pred.value, levels = c("R", "N"), step = TRUE)
data.sig |
A data frame where each row is a sample and each column is a pathway. |
pred.value |
A numeric vector representing the response variable. |
levels |
A character vector specifying the levels of the response variable (default: c("R", "N")). |
step |
Logical. If TRUE, perform stepwise model selection (default: TRUE). |
The function converts the response variable to a factor with specified levels and fits a logistic regression model using the glm function.
A fitted logistic regression model.
data(data_sig, package = "iPRISM")
b <- get_logiModel(data.sig = data_sig, pred.value = pred_value, step = TRUE)
summary(b)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.