Function of the AgroR package for joint analysis of experiments conducted in a randomized factorial double in block design with balanced data. The function generates the joint analysis through two models. Model 1: F-test of the effects of Factor 1, Factor 2 and F1 x F2 interaction are used in reference to the mean square of the interaction with the year. Model 2: F-test of the Factor 1, Factor 2 and F1 x F2 interaction effects are used in reference to the mean square of the residual.

conjfat2dbc(
  f1,
  f2,
  block,
  experiment,
  response,
  transf = 1,
  model = 1,
  norm = "sw",
  homog = "bt",
  homog.value = 7,
  alpha.f = 0.05,
  alpha.t = 0.05
)

Arguments

f1

Numeric or complex vector with factor 1 levels

f2

Numeric or complex vector with factor 2 levels

block

Numerical or complex vector with blocks

experiment

Numeric or complex vector with locations or times

response

Numerical vector containing the response of the experiment.

transf

Applies data transformation (default is 1; for log consider 0)

model

Define model of the analysis of variance

norm

Error normality test (default is Shapiro-Wilk)

homog

Homogeneity test of variances (default is Bartlett)

homog.value

Reference value for homogeneity of experiments. By default, this ratio should not be greater than 7

alpha.f

Level of significance of the F test (default is 0.05)

alpha.t

Significance level of the multiple comparison test (default is 0.05)

Value

Returns the assumptions of the analysis of variance, the assumption of the joint analysis by means of a QMres ratio matrix and analysis of variance

Note

The function is still limited to analysis of variance and assumptions only.

References

Ferreira, P. V. Estatistica experimental aplicada a agronomia. Edufal, 2018.

Principles and procedures of statistics a biometrical approach Steel, Torry and Dickey. Third Edition 1997

Multiple comparisons theory and methods. Departament of statistics the Ohio State University. USA, 1996. Jason C. Hsu. Chapman Hall/CRC.

Practical Nonparametrics Statistics. W.J. Conover, 1999

Ramalho M.A.P., Ferreira D.F., Oliveira A.C. 2000. Experimentacao em Genetica e Melhoramento de Plantas. Editora UFLA.

Author

Gabriel Danilo Shimizu, shimizu@uel.br

Leandro Simoes Azeredo Goncalves

Rodrigo Yudi Palhaci Marubayashi

Examples

library(AgroR)
ano=factor(rep(c(2018,2019,2020),e=48))
f1=rep(rep(c("A","B","C"),e=16),3)
f2=rep(rep(rep(c("a1","a2","a3","a4"),e=4),3),3)
resp=rnorm(48*3,10,1)
bloco=rep(c("b1","b2","b3","b4"),36)
dados=data.frame(ano,f1,f2,resp,bloco)
with(dados,conjfat2dbc(f1,f2,bloco,ano,resp, model=1))
#> 
#> -----------------------------------------------------------------
#> Normality of errors
#> -----------------------------------------------------------------
#>                          Method Statistic   p.value
#>  Shapiro-Wilk normality test(W) 0.9855468 0.1363499
#> 
#> As the calculated p-value is greater than the 5% significance level, hypothesis H0 is not rejected. Therefore, errors can be considered normal
#> -----------------------------------------------------------------
#> Homogeneity of Variances
#> -----------------------------------------------------------------
#>                               Method Statistic   p.value
#>  Bartlett test(Bartlett's K-squared)  12.47598 0.3289486
#> 
#> As the calculated p-value is greater than the 5% significance level, hypothesis H0 is not rejected. Therefore, the variances can be considered homogeneous
#> -----------------------------------------------------------------
#> Independence from errors
#> -----------------------------------------------------------------
#>                  Method Statistic   p.value
#>  Durbin-Watson test(DW)  2.860767 0.8143241
#> 
#> As the calculated p-value is greater than the 5% significance level, hypothesis H0 is not rejected. Therefore, errors can be considered independent
#> -----------------------------------------------------------------
#> Test Homogeneity of experiments
#> -----------------------------------------------------------------
#> [1] 2.066998
#> 
#> Based on the analysis of variance and homogeneity of experiments, it can be concluded that: 
#> Experiments cannot be analyzed together (Separate by experiment)

#> 
#> 

#> 
#> -----------------------------------------------------------------
#> Analysis of variance
#> -----------------------------------------------------------------
#>             Df    Sum Sq   Mean Sq   F value     Pr(>F)
#> f1           2  3.706365 1.8531823 1.2257446 0.31281749
#> f2           3  2.225938 0.7419794 0.4907651 0.69229042
#> f1:f2        6  2.464822 0.4108037 0.2717166 0.94427950
#> local:bloco 11 14.528634 1.3207849 0.8736027 0.57697075
#> f1:f2:local 22 33.261424 1.5118829 1.5376651 0.01670947
#> Residuals   99 97.340056 0.9832329                     
#> 
#> -----------------------------------------------------------------
#>