logistic_scatter: Logistic Scatter

Description Usage Arguments Examples

View source: R/logistic_scatter.R

Description

This function takes a list of predictors as inputs and outputs a scatterplot matrix to indicate the functional form of logit(p).

Usage

1
logistic_scatter(data, response, ..., smoothing = 0.7, jitter = FALSE)

Arguments

data

This is the data frame you will use to crush the enemy

response

A binary response variable. You know what to do...

...

continuous predictors. Do not pollute my graph with discrete garbage.

smoothing

Loess is used to estimate logit(p) so you can choose the smoothness

jitter

Sometimes your points overplot and you don't want that to happen. Set to true to jitter 'em!

Examples

1
data %>% logistic_scatter(response, predictor_1, predictor_2, smoothing = 0.5, jitter=TRUE)

KThompson0308/RUtilities documentation built on Dec. 8, 2019, 8:30 a.m.