powered by
all_plot_aic() generates a scatter plot with all effect estimates against AIC.
all_plot_aic()
all_plot_aic(data, xlab = "AIC", ylab = NULL, title = NULL)
A ggplot2 object: scatter plot
Object from all_cox, all_glm, all_speedglm, or all_glm, including all effect estimate values.
all_cox
all_glm
all_speedglm
Character string for x-axis name. Default is "AIC"
"AIC"
Character string for y-axis name. Default depends on original model types.
Character for plot title. Default is "NULL".
"NULL"
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(results)
Run the code above in your browser using DataLab