Simple logistic regression with a single predictor
simple_IQRlogisticRegression.Rd
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.
- VARcol
Name of the column in data that contains the information about an event happened (1) or not (0).
- PREDcol
Name of the column in data that should be used as a predictor. Only one predictor is allowed.
- title
Title for the plot.
- xlab
Label for the x-axis.
- ylab
Label for the y-axis.
- SIGNIF
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.
See also
Other Logistic regression:
IQRlogisticRegression()
,
export_IQRlogisticFit()
,
import_IQRlogisticFit()
,
modelEvaluation_IQRlogisticRegression()
,
plot_IQRlogistRegressFit()
,
summary_IQRlogisticRegression()