Add Statistics Columns to an Anova Table

DESCRIPTION:

Creates a new anova table with appropriate statistics columns.

USAGE:

stat(object, test, scale, df.scale, n) 
stat.anova(object, test, scale, df.scale, n) 

REQUIRED ARGUMENTS:

object
an anova object

OPTIONAL ARGUMENTS:

test
what test to use; the choices are "none", "Chisq", "F", or "Cp"
scale
an estimate of scale, needed for the F-test and Cp statistic
df.scale
the (residual) degrees of freedom associated with the scale estimate (as in the denominator of an F-ratio).'
n
the sample size for the data underlying the anova table.

VALUE:

a new anova table is returned, with the appropriate statisticscolumns included. This function relies on the names of the columns being in a small subset of allowed names. It is mainly intended as a support function for anova(), step(), add1() or drop1(). Even though stat() is a generic function, stat.anova() is the only method to date.

SEE ALSO:

, , ,