PomaOddsRatio {POMA} | R Documentation |
PomaOddsRatio() calculates the Odds Ratios for each feature from a logistic regression model using the binary outcome (group/type must be a binary factor) as a dependent variable.
PomaOddsRatio(data, feature_name = NULL, covariates = FALSE, showCI = TRUE)
data |
A MSnSet object. First |
feature_name |
A vector with the name/s of feature/s that will be used to fit the model. If it's NULL (default), all variables will be included in the model. |
covariates |
Logical that indicates if covariates will be included in logistic regression model. Default is |
showCI |
Logical that indicates if the 95% confidence intervals will be plotted. Default is |
A data frame with the Odds Ratios for all features with their 95% confidence intervals and a ggplot2 object.
Pol Castellano-Escuder
data("st000336") st000336 %>% PomaImpute() %>% PomaNorm() %>% PomaOddsRatio(feature_name = c("glutamic_acid", "glutamine", "glycine", "histidine"))