Statistics for Comparing Linear Models

DESCRIPTION:

Creates an object of class compare.fits allowing the user to display model summary statistics in a form allowing easy comparison of models.

USAGE:

compare.fits(...) 

REQUIRED ARGUMENTS:

...
one or more class "lm" or class "lmRobMM" objects. Names given to objects in the list are used as labeling information in the printed output.

VALUE:

an object of class "compare.fits" containing the elements of input models to be compared.

DETAILS:

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.

SEE ALSO:

, .

EXAMPLES:

aa <- lm(Fuel ~ Weight + Disp., data=fuel.frame) 
bb <- lmRobMM(Fuel ~ Weight + Disp., data=fuel.frame) 
compare.fits(least.squares=aa, robust=bb)