PlotPredCompsDF: PlotApcDF

Description Usage Arguments Examples

Description

plots the output of GetApcDF – this is my preferred display for now

Usage

1
PlotPredCompsDF(apcDF, variant = "Impact")

Arguments

apcDF

the output of GetApcDF

Examples

1
2
3
4
5
6
7
8
9
n <- 200
x1 <- runif(n = n, min = 0, max = 1)
x2 <- runif(n = n, min = 0, max = 1)
x3 <- runif(n = n, min = 0, max = 10)
y <- 2 * x1 + (-2) * x2 + 1 * x3 + rnorm(n, sd = 0.1)
df <- data.frame(x1, x2, x3, y)
fittedLm <- lm(y ~ ., data = df)
apcDF <- GetPredCompsDF(fittedLm, df = df)
PlotPredCompsDF(apcDF, variant = "PerUnitInput") + theme_gray(base_size = 18)

dchudz/predcomps documentation built on May 15, 2019, 1:48 a.m.