Learn R Programming

agricolae (version 1.3-7)

nonadditivity: Nonadditivity model test

Description

The resistance for the transformable nonadditivity, due to J. W. Tukey, is based on the detection of a curvilinear relation between y-est(y) and est(y). A freedom degree for the transformable nonadditivity.

Usage

nonadditivity(y, factor1, factor2, df, MSerror)

Value

P, Q and non-additivity analysis of variance

Arguments

y

Answer of the experimental unit

factor1

Firts treatment applied to each experimental unit

factor2

Second treatment applied to each experimental unit

df

Degrees of freedom of the experimental error

MSerror

Means square error of the experimental

Author

Felipe de Mendiburu

Details

Only two factor: Block and treatment or factor 1 and factor 2.

References

1. Steel, R.; Torri,J; Dickey, D.(1997) Principles and Procedures of Statistics A Biometrical Approach

2. George E.P. Box; J. Stuart Hunter and William G. Hunter. Statistics for experimenters. Wile Series in probability and statistics

Examples

Run this code
library(agricolae)
data(potato )
potato[,1]<-as.factor(potato[,1])
model<-lm(cutting ~ date + variety,potato)
df<-df.residual(model)
MSerror<-deviance(model)/df
analysis<-with(potato,nonadditivity(cutting, date, variety, df, MSerror))

Run the code above in your browser using DataLab