plot.fits.compare: Plots for comparing fits

View source: R/plot.fits.compare.R

plot.fits.compareR Documentation

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 class '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

 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
## Not run: 
 plot(comp)

## End(Not run)

robcbi documentation built on Aug. 22, 2023, 1:06 a.m.