Learn R Programming

ExpDes (version 1.2.0)

fat2.crd: Double factorial scheme in CRD

Description

Analyses experiments in balanced Completely Randomized Design in double factorial scheme, considering a fixed model.

Usage

fat2.crd(factor1, factor2, resp, quali = c(TRUE, TRUE), mcomp = "tukey", 
fac.names = c("F1", "F2"), sigT = 0.05, sigF = 0.05)

Arguments

factor1

Numeric or complex vector containing the factor 1 levels.

factor2

Numeric or complex vector containing the factor 2 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 and 2.

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%.

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).

Details

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

References

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

See Also

For more examples, see: crd, fat3.crd, split2.crd, fat2.ad.crd and fat3.ad.crd.

Examples

Run this code
# NOT RUN {
data(ex4)
attach(ex4)
fat2.crd(revol, esterco, zn, quali=c(FALSE,TRUE), mcomp="tukey", 
 fac.names=c("Revolving","Manure"), sigT = 0.05, sigF = 0.05)
# }

Run the code above in your browser using DataLab