fits.compare | R Documentation |
The fits.compare function accepts a sequence of objects of class "glm", "cubinf", or "aov" (with optional names), and creates a class "fits.compare" object. The print.fits.compare function prints summaries of each of the input objects in a manner suitable for comparing the input models.
## S3 method for class 'fits.compare'
print(x, digits = max(3, .Options$digits - 3), ...)
fits.compare(...)
x |
An object inheriting from class "fits.compare", the result of a call to |
digits |
Minimal number of significant digits. |
... |
In |
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
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.