logreg.plot {NCStats}R Documentation

Fitted model plot for a logistic regression glm model.

Description

A generic function for constructing a fitted model plot for a glm model representing a simple logistic regression.

Usage

logreg.plot(mdl,jtrx=0.1,jtry=0.1,pts=19,ylab=names(mdl$model)[1],
            xlab=names(mdl$model)[2],main=toString(mdl$call),
            plot.p=TRUE,p.ints=10,p.col="blue",p.pch=3,p.cex=2,
            r.vals=20,r.col="red",r.lwd=2,...)

Arguments

mdl a glm model representing a simple logistic regression.
jtrx an amount to jitter the observed values in the x direction.
jtry an amount to jitter the observed values in the y direction.
pts a vector of numerics indicating what plotting charachters (i.e., pch) codes to use.
xlab a string for labelling the x-axis.
ylab a string for labelling the y-axis.
main a string for the main label to the plot. Defaults to the model call.
plot.p logical; if TRUE (default) then the proportion for categorized values of X are plotted.
p.ints a numeric indicating how many intervals over which to compute proportions.
p.col a color to plot the proportions.
p.pch a plotting character for plotting the proportions.
p.cex a character expansion factor for plotting the proportions.
r.vals a numer representing the number of values to use for plotting the logistic regression. A larger number means a smoother line.
r.col a color to plot the logistic regression line.
r.lwd a line width for the logistic regression line.
... Other arguments to the generic plot function.

Details

Eventually this should be placed in the fit.plot function.

Value

None. However, a fitted-line plot is produced.

Author(s)

Derek H. Ogle, dogle@northland.edu

See Also

fit.plot.

Examples

###

[Package NCStats version 0.0-12 Index]