gg_added_var: Create an Added Variable Plot

Description Usage Arguments Value

View source: R/av_plots.R

Description

Adapted from Steven Pollack https://github.com/stevenpollack/stat151a/blob/master/From_Lab/Feb-26-2014.R (combines his data manipulation and graphing of av plots and removes formatting (can be added back in or adjusted as needed)

Usage

1
gg_added_var(partial, extended, se = TRUE)

Arguments

partial

the model containing only the output and the variable for which you wish to graph the av plot

extended

the full model from which you are drawing the partial variable

se

whether to graph the standard error around the regression line

Value

a ggplot2 graph that can be extended via other ggplot2 arguments


McCartneyAC/mccrr documentation built on Jan. 20, 2022, 9:38 a.m.