build.logistic.model | R Documentation |
Build a logistic model
build.logistic.model(
df,
group,
seed = 666,
scale = TRUE,
direction = "backward",
rms = FALSE
)
df |
Column is gene/miRNA, Row is sample |
group |
Two levels. Second unique variable is defined as experiment group |
direction |
backward c("both", "backward", "forward") |
rms |
If TRUE, use rms instead of glm to build the model. Useful for validation and calibration function in rms package. |
A list. list(model=glm.fit, StepwiseModel=elimination, eliminationCandidates=stringr::str_remove_all(names(unclass(coef(elimination))-c(1)),''') )
data("LIRI")
lg.res <- loonR::build.logistic.model(LIRI[,3:5],LIRI$status)
lg.res
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.