fat3.crd: Triple factorial scheme in CRD

Description Usage Arguments Details Value Note Author(s) References See Also Examples

View source: R/fat3.crd.R

Description

fat3.crd Analyses experiments in balanced Completely Randomized Design in triple factorial scheme, considering a fixed model.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
fat3.crd(
  factor1,
  factor2,
  factor3,
  resp,
  quali = c(TRUE, TRUE, TRUE),
  mcomp = "tukey",
  fac.names = c("F1", "F2", "F3"),
  sigT = 0.05,
  sigF = 0.05,
  unfold = NULL
)

Arguments

factor1

Numeric or complex vector containing the factor 1 levels.

factor2

Numeric or complex vector containing the factor 2 levels.

factor3

Numeric or complex vector containing the factor 3 levels.

resp

Numeric or complex vector containing the response variable.

quali

Logic. If TRUE (default), the treatments are assumed qualitative, if FALSE, quantitatives.

mcomp

Allows choosing the multiple comparison test; the default is the test of Tukey, however, the options are: the LSD test ('lsd'), the LSD test with Bonferroni protection ('lsdb'), the test of Duncan ('duncan'), the test of Student-Newman-Keuls ('snk'), the test of Scott-Knott ('sk'), the Calinski and Corsten test ('ccF') and bootstrap multiple comparison's test ('ccboot').

fac.names

Allows labeling the factors 1, 2 and 3.

sigT

The signficance to be used for the multiple comparison test; the default is 5%.

sigF

The signficance to be used for the F test of ANOVA; the default is 5%.

unfold

Says what must be done after the ANOVA. If NULL (default), recommended tests are performed; if '0', just ANOVA is performed; if '1', the simple effects are tested; if '2.1', '2.2' or '2.3', the double interactions are unfolded; if '3', the triple interaction is unfolded.

Details

The arguments sigT and mcomp will be used only when the treatment are qualitative.

Value

The output contains the ANOVA of the referred CRD, the Shapiro-Wilk normality test for the residuals of the model, the fitted regression models (when the treatments are quantitative) and/or the multiple comparison tests (when the treatments are qualitative).

Note

The graphics can be used to construct regression plots and plotres for residuals plots.

Author(s)

Eric B Ferreira, eric.ferreira@unifal-mg.edu.br

Denismar Alves Nogueira

Portya Piscitelli Cavalcanti

References

BANZATTO, D. A.; KRONKA, S. N. Experimentacao Agricola. 4 ed. Jaboticabal: Funep. 2006. 237 p.

See Also

fat2.crd, fat2.rbd, fat3.rbd, fat2.ad.crd, fat2.ad.rbd, fat3.ad.crd and fat3.ad.rbd.

Examples

1
2
3
4
5
data(ex6)
attach(ex6)
fat3.crd(fatorA, fatorB, fatorC, resp, quali = c(TRUE,
TRUE, TRUE), mcomp = "lsdb", fac.names = c("Factor A",
"Factor B", "Factor C"), sigT = 0.05, sigF = 0.05)

Example output

Attaching package:ExpDesThe following object is masked frompackage:stats:

    ccf

------------------------------------------------------------------------
Legend:
FACTOR 1:  Factor A 
FACTOR 2:  Factor B 
FACTOR 3:  Factor C 
------------------------------------------------------------------------

------------------------------------------------------------------------
Analysis of Variance Table
------------------------------------------------------------------------
                           DF       SS      MS     Fc  Pr>Fc
Factor A                    1  0.51042 0.51042 0.8362 0.3741
Factor B                    1  0.51042 0.51042 0.8362 0.3741
Factor C                    1  0.05042 0.05042 0.0826 0.7775
Factor A*Factor B           1  2.87042 2.87042 4.7024 0.0455
Factor A*Factor C           1  0.12042 0.12042 0.1973 0.6629
Factor B*Factor C           1  0.40042 0.40042  0.656 0.4299
Factor A*Factor B*Factor C  1  0.02042 0.02042 0.0334 0.8572
Residuals                  16  9.76667 0.61042              
Total                      23 14.24958                      
------------------------------------------------------------------------
CV = 7.76 %

------------------------------------------------------------------------
Shapiro-Wilk normality test
p-value:  0.6752543 
According to Shapiro-Wilk normality test at 5% of significance, residuals can be considered normal.
------------------------------------------------------------------------



Significant Factor A*Factor B  interaction: analyzing the interaction
------------------------------------------------------------------------

Analyzing  Factor A  inside of each level of  Factor B 
------------------------------------------------------------------------
------------------------------------------------------------------------
Analysis of Variance Table
------------------------------------------------------------------------
                    DF      SS      MS     Fc  Pr>Fc
Factor A:Factor B 1  1 2.90083 2.90083 4.7522 0.0445
Factor A:Factor B 2  1 0.48000 0.48000 0.7863 0.3883
Residuals           16 9.76667 0.61042              
------------------------------------------------------------------------



 Factor A  inside of the level  1  of  Factor B 
------------------------------------------------------------------------
Bonferroni's T test (protected LSD)
------------------------------------------------------------------------
Groups  Treatments  Means
a 	 1 	 10.41667 
 b 	 2 	 9.433333 
------------------------------------------------------------------------


 Factor A  inside of the level  2  of  Factor B 

According to the F test, the means of this factor are statistical equal.
------------------------------------------------------------------------
    Levels     Means
1        1  10.01667
2        2  10.41667
------------------------------------------------------------------------



Analyzing  Factor B  inside of each level of  Factor A 
------------------------------------------------------------------------
------------------------------------------------------------------------
Analysis of Variance Table
------------------------------------------------------------------------
                    DF      SS      MS     Fc  Pr>Fc
Factor B:Factor A 1  1 0.48000 0.48000 0.7863 0.3883
Factor B:Factor A 2  1 2.90083 2.90083 4.7522 0.0445
Residuals           16 9.76667 0.61042              
------------------------------------------------------------------------



 Factor B  inside of the level  1  of  Factor A 

According to the F test, the means of this factor are statistical equal.
------------------------------------------------------------------------
    Levels     Means
1        1  10.41667
2        2  10.01667
------------------------------------------------------------------------


 Factor B  inside of the level  2  of  Factor A 
------------------------------------------------------------------------
Bonferroni's T test (protected LSD)
------------------------------------------------------------------------
Groups  Treatments  Means
a 	 2 	 10.41667 
 b 	 1 	 9.433333 
------------------------------------------------------------------------

Analizing the effect of the factor  Factor C 
------------------------------------------------------------------------
Factor C
According to the F test, the means of this factor are not different.
------------------------------------------------------------------------
  Niveis   Medias
1      1 10.02500
2      2 10.11667
------------------------------------------------------------------------

ExpDes documentation built on Oct. 5, 2021, 9:09 a.m.

Related to fat3.crd in ExpDes...