compare.fits
allowing the user to display
model summary statistics in a form allowing easy comparison of models.
compare.fits(...)
"lm"
or class
"lmRobMM"
objects. Names given to
objects in the list are used as labeling information in the printed output.
"compare.fits"
containing the elements of input models to
be compared.
The
compare.fits()
function processes its arguments one at a time to
create a list of elements from the input models which inherit from the classes
"lm"
and
"lmRobMM"
. The object returned is a member of class
"compare.fits"
. Because of differences in the computed summary statistics for
class
"lm"
and class
"lmRobMM"
objects when compared with other objects
inheriting from class
"lm"
(for example, class
"aov"
and class
"glm"
), the
list of input objects is currently limited to class
"lm"
and class
"lmRobMM"
objects.
The functions
print.compare.fits()
and
summary.compare.fits()
display a
textual comparison of the input models, and the
plot.compare.fits()
function provides comparative plots.
aa <- lm(Fuel ~ Weight + Disp., data=fuel.frame) bb <- lmRobMM(Fuel ~ Weight + Disp., data=fuel.frame) compare.fits(least.squares=aa, robust=bb)