Learn R Programming

languageR (version 0.2)

plot.logistic.fit.fnc: Plot for goodness of fit of logistic regression

Description

This function plots observed proportions against mean predicted probabilities. For a good fit, points should be approximately on a straight line.

Usage

plot.logistic.fit.fnc(x = dative.glmm, data = dative, ...)

Arguments

x
A logistic regression model fitted with lmer or lrm.
data
The data set to which the model was fitted.
...
other parameters to be passed through to plotting functions.

Value

  • A plot is produced on the graphics device.

Examples

Run this code
data(dative)
library(lme4, keep.source=FALSE)

dative.glmm = lmer(RealizationOfRecipient ~ AccessOfTheme + 
   AccessOfRec + LengthOfRecipient + AnimacyOfRec +
   AnimacyOfTheme + PronomOfTheme + DefinOfTheme + LengthOfTheme +
   SemanticClass + Modality + (1|Verb), 
   data = dative, family = "binomial", method = "PQL")

plot.logistic.fit.fnc (dative.glmm, dative)

Run the code above in your browser using DataLab