Analyses experiments in balanced Randomized Blocks Designs under one single factor, considering a fixed model.
rbd(treat, block, resp, quali = TRUE, mcomp = "tukey", nl = FALSE,
hvar='oneillmathews', sigT = 0.05, sigF = 0.05)
Numeric or complex vector containing the treatments.
Numeric or complex vector containing the blocks.
Numeric or complex vector containing the response variable.
Logic. If TRUE (default), the treatments are assumed qualitative, if FALSE, quantitatives.
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').
Logic. If FALSE (default) linear regression models are adjusted. If TRUE, non-linear regression models are adjusted.
Allows choosing a test for homogeneity of variances; the default is the test of ONeill and Mathews ('oneillmathews'), however, there are other options: test of Han ('han') and test of Ascombe and Tukey ('anscombetukey').
The signficance to be used for the multiple comparison test; the default is 5%.
The signficance to be used for the F test of ANOVA; the default is 5%.
The output contains the ANOVA of the RBD, 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).
The arguments sigT and mcomp will be used only when the treatment are qualitative.
BANZATTO, D. A.; KRONKA, S. N. Experimentacao Agricola. 4 ed. Jaboticabal: Funep. 2006. 237 p.
FERREIRA, E. B.; CAVALCANTI, P. P.; NOGUEIRA D. A. Funcao em codigo R para analisar experimentos em DBC simples, em uma so rodada. In: JORNADA CIENTIFICA DA UNIVERSIDADE FEDERAL DE ALFENAS-MG, 2., 2009, Alfenas. Annals... ALfenas: Unifal-MG, 2009.
For more examples, see: fat2.rbd
, fat3.rbd
, split2.rbd
, strip
, fat2.ad.rbd
and fat3.ad.rbd
.
# NOT RUN {
data(ex2)
attach(ex2)
rbd(trat, provador, aparencia, quali = TRUE, mcomp='lsd',
hvar='oneillmathews', sigT = 0.05, sigF = 0.05)
# }
Run the code above in your browser using DataLab