powered by
This function fits a logistic regression model to the given data.
get_logiModel(data.sig, pred.value, levels = c("R", "N"), step = TRUE)
A fitted logistic regression model.
A data frame where each row is a sample and each column is a pathway.
A numeric vector representing the response variable.
A character vector specifying the levels of the response variable (default: c("R", "N")).
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.
data(data_sig, package = "iPRISM") # \donttest{ b <- get_logiModel(data.sig = data_sig, pred.value = pred_value, step = TRUE) summary(b) # }
Run the code above in your browser using DataLab