all_plot_aic2: Draws multiple scatter plots of all effect estimates against...

View source: R/all_plot_aic2.R

all_plot_aic2R Documentation

Draws multiple scatter plots of all effect estimates against AIC

Description

all_plot_aic2() draws multiple scatter plots of all effect estimates against AIC. Each plot indicates if a specific variable is included in the models.

Usage

all_plot_aic2(data, xlab = "AIC", ylab = NULL, title = NULL)

Arguments

data

Object from all_cox, all_glm, all_speedglm, or all_glm, including all effect estimate values.

xlab

Character string for x-axis name. Default is "AIC".

ylab

Character string for y-axis name. Default depends on original model types.

title

Character for plot title. Default is "NULL".

Value

A ggplot2 object: scatter plot.

Examples

vlist <- c("Age", "Sex", "Married", "BMI", "Education", "Income")
results <- all_cox(crude = "Surv(t0, t1, Endpoint) ~ Diabetes", xlist = vlist, data = diab_df)
all_plot_aic(data = results)

allestimates documentation built on March 31, 2023, 5:28 p.m.