tukey.1df {dae} | R Documentation |
Performs Tukey's one-degree-of-freedom-test-for-nonadditivity on a set of residuals from an analysis of variance
tukey.1df(aov.obj, data, error.term="Within")
aov.obj |
An aov object or aovlist object created from a call to aov. |
error.term |
The error.term whose residuals are to be tested for nonadditivity. |
data |
A data.frame containing the original response variable and factors used in the call to aov. |
A list containing Tukey.SS, Tukey.F, Tukey.p, Devn.SSq being the SSq for the 1df test, F value for test and the p-value for the test for the 1df test, F value for test and the p-value for the test.
Only terms in the linear model will be included in the fitted values and so will not be excluded from the residuals. In partiicular, terms in an Error function, but not in the model external to the Error function, will not be included. To include them, put them in both.
rcbd.aov - aov(Y ~ Blocks + Treats + Error(Blocks/Plots)) tukey.1df(rcbd.aov, rcbd, error.term = "Blocks:Plots")