vis_logit: vis_logit

Description Usage Arguments Value

View source: R/vis.r

Description

A visualizaiton for logit regressions that calculates Odds Ratios (OR)

Usage

1
2
vis_logit(out, Pr = NULL, fullUnivariate = FALSE, intercept = TRUE,
  trans = "log2", col_scheme = rainbow(4))

Arguments

out

a length 2 list univariate and final models: list(screen=several_univariate_models,final=one_multivariate_model). Either screen or final may be set to NULL. Accepts: lm, glm, lmer, glmer

Pr

an optional numeric vector of the same length and order as out$screen. If the user wants to specify univariate p-values they may do so here. Otherwise the wald test for the 1st variable in the model will be used.

fullUnivariate

visualizes all variables in each univariate model

intercept

boolean indicating if the intercept should be visualized. True by default.

trans

a character indicating the transformation for the y-axis: log2, log10, sqrt. Refers to the trans parameter of scale_y_continuous. log2 by default.

col_scheme

a grDevices::Palettes to specify the color scheme representing -log10(p-values). rainbow(4) by default.

Value

a list of 2 ggplot2 objects visualizing the univariate screening and multivariate final model.


LewisLabUCSD/RegressionModelPipeline documentation built on Jan. 11, 2021, 10:33 p.m.