logis.fit {RVAideMemoire}R Documentation

Graphical adujstment of a simple binary logistic regression to data

Description

Cuts the data into intervals, compute the response probability and its standard error for each interval and add the results to the regression curve. No test is performed but this permits to have a graphical idea of the adjustment of the model to the data.

Usage

logis.fit(model, int = 5, ...)

Arguments

model

glm model.

int

number of intervals.

...

other arguments. See help of points and segments.

Author(s)

Maxime HERVE <maxime.herve@univ-rennes1.fr>

See Also

glm

Examples

x <- 1:50
y <- c(rep(0,18),sample(0:1,14,replace=TRUE),rep(1,18))
model <- glm(y~x,family=binomial)
plot(x,y)
lines(x,model$fitted)
logis.fit(model)

[Package RVAideMemoire version 0.9-83-7 Index]