crd: One factor Completely Randomized Design

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

View source: R/crd.R

Description

Analyses balanced experiments in Completely Randomized Design under one single factor, considering a fixed model.

Usage

1
2
crd(treat, resp, quali = TRUE, mcomp = "tukey", nl = FALSE, hvar='bartlett', 
sigT = 0.05, sigF = 0.05)

Arguments

treat

Numeric or complex vector containing the treatments.

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-Knot ('sk'), the Calinski and Corsten test ('ccf') and bootstrap multiple comparison's test ('ccboot').

nl

Logic. If FALSE (default) linear regression models are adjusted. IF TRUE, non-linear regression models are adjusted.

hvar

Allows choosing the test for homogeneity of variances; the default is the test of Bartlett, however there are other options: test of Levene ('levene'), test of Samiuddin ('samiuddin'), test of ONeill and Mathews ('oneillmathews') and the Layard test ('layard').

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

Details

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

Value

The output contains the ANOVA of the 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)

Denismar Alves Nogueira

Eric Batista Ferreira

Portya Piscitelli Cavalcanti

References

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

FERREIRA, E. B.; CAVALCANTI, P. P. Funcao em codigo R para analisar experimentos em DIC simples, em uma so rodada. In: REUNIAO ANUAL DA REGIAO BRASILEIRA DA SOCIEDADE INTERNACIONAL DE BIOMETRIA, 54./SIMPOSIO DE ESTATISTICA APLICADA A EXPERIMENTACAO AGRONOMICA, 13., 2009, Sao Carlos. Programas e resumos... Sao Carlos, SP: UFSCar, 2009. p. 1-5.

See Also

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

Examples

1
2
3
data(ex1)
attach(ex1)
crd(trat, ig, quali = FALSE, sigF = 0.05)

ExpDes documentation built on May 18, 2018, 1:03 a.m.