Learn R Programming

robcbi (version 1.1-3)

plot.fits.compare: Plots for comparing fits

Description

Plots the results of a call to fits.compare. Plotting the "fits.compare" object results in a sequence of graphical displays. These displays are designed to be of use in comparing two sets of parameter estimates in linear models.

Usage

# S3 method for fits.compare
plot(x, xplots = FALSE, ..., ask = TRUE)

Arguments

x

An object inheriting from class "fits.compare", the result of a call to fits.compare.

xplots

If TRUE, the graphics are displayed.

...

Further arguments passed to or from plot method.

ask

Graphical parameter, if TRUE (and the R session is interactive) the user is asked for input, before a new figure is drawn.

Details

It is not recommended to compare objects with different structures.

See Also

The model fitting function glm, cubinf

Examples

Run this code
 library(robcbi)
 data(Finney)
 Vol <- Finney$Vol; Rate <- Finney$Rate; Resp <- Finney$Resp
 lVol <-log(Vol); lRate <- log(Rate)
 z.glm <- glm(Resp~lVol+lRate,family=binomial)
 z.cub <- glm(Resp~lVol+lRate,family=binomial,method="cubinf", ufact=3.2)
 comp <- fits.compare(z.glm,z.cub)
 comp
if (FALSE) {
 plot(comp)
}

Run the code above in your browser using DataLab