View source: R/plot.fits.compare.R
plot.fits.compare | R Documentation |
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.
## S3 method for class 'fits.compare'
plot(x, xplots = FALSE, ..., ask = TRUE)
x |
An object inheriting from class "fits.compare", the result of a call to |
xplots |
If TRUE, the graphics are displayed. |
... |
Further arguments passed to or from |
ask |
Graphical parameter, if TRUE (and the R session is interactive) the user is asked for input, before a new figure is drawn. |
It is not recommended to compare objects with different structures.
The model fitting function glm
, cubinf
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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.