Description Usage Arguments Value Author(s) Examples
View source: R/PomaOddsRatio.R
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.
1 | 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
1 2 3 4 5 6 7 | data("st000336")
st000336 %>%
PomaImpute() %>%
PomaNorm() %>%
PomaOddsRatio(feature_name = c("glutamic_acid", "glutamine",
"glycine", "histidine"))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.