Compute Tables of Results from an Aov Model Fit
Computes summary tables for model fits, especially complex
## S3 method for class 'aov': model.tables(x, type = "effects", se = FALSE, cterms, \dots)
## S3 method for class 'aovlist': model.tables(x, type = "effects", se = FALSE, \dots)
- a model object, usually produced by
- type of table: currently only
"means"are implemented. Can be abbreviated.
- should standard errors be computed?
- A character vector giving the names of the terms for which tables should be computed. The default is all tables.
- further arguments passed to or from other methods.
type = "effects" give tables of the coefficients for each
term, optionally with standard errors.
type = "means" give tables of the mean response for each
combinations of levels of the factors in a term.
"aov" method cannot be applied to components of a
- An object of class
"tables.aov", as list which may contain components
tables A list of tables for each requested term. n The replication information for each term. se Standard error information.
The implementation is incomplete, and only the simpler cases have been tested thoroughly.
aov fits are not supported.
options(contrasts = c("contr.helmert", "contr.treatment")) npk.aov <- aov(yield ~ block + N*P*K, npk) model.tables(npk.aov, "means", se = TRUE) ## as a test, not particularly sensible statistically npk.aovE <- aov(yield ~ N*P*K + Error(block), npk) model.tables(npk.aovE, se = TRUE) model.tables(npk.aovE, "means")