# Simple logistic regression with a single predictor

This is a convenient interface to the glm function that performs a simple logistic regression for a single predictor and displays the results graphically.

simple_IQRlogisticRegression(
data,
VARcol,
PREDcol,
title = NULL,
xlab = NULL,
ylab = NULL,
SIGNIF = 4
)

## Arguments

data A data frame containing the columns that are defined in the following. Name of the column in data that contains the information about an event happened (1) or not (0). Name of the column in data that should be used as a predictor. Only one predictor is allowed. Title for the plot. Label for the x-axis. Label for the y-axis. Number of significant digits used for the displayed p-value.

## Value

ggplot2 object for the plot. Attributes to the output argument are the data that were used for plotting and the results for both the fit and the prediction.

Other Logistic regression: IQRlogisticRegression(), export_IQRlogisticFit(), import_IQRlogisticFit(), modelEvaluation_IQRlogisticRegression(), plot_IQRlogistRegressFit(), summary_IQRlogisticRegression()