latsd: Latin Square Design

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

View source: R/latsd.R

Description

lastd Analyses experiments in balanced Latin Square Design, considering a fixed model.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
latsd(
  treat,
  row,
  column,
  resp,
  quali = TRUE,
  mcomp = "tukey",
  sigT = 0.05,
  sigF = 0.05,
  unfold = NULL
)

Arguments

treat

Numeric or complex vector containing the treatments.

row

Numeric or complex vector containing the rows.

column

Numeric or complex vector containing the columns.

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

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.

Details

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

Value

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

Author(s)

Eric B Ferreira, eric.ferreira@unifal-mg.edu.br @author Denismar Alves Nogueira @author Portya Piscitelli Cavalcanti @note The graphics can be used to construct regression plots and plotres for residuals plots.

References

GOMES, F. P. Curso de Estatistica Experimental. 10a ed. Piracicaba: ESALQ/USP. 1982. 430.

FERREIRA, E. B.; CAVALCANTI, P. P.; NOGUEIRA D. A. Funcao em codigo R para analisar experimentos em DQL simples, em uma so rodada. In: CONGRESSO DE POS-GRADUACAO DA UNIVERSIDADE FEDERAL DE LAVRAS, 18., 2009, Lavras. Annals... Lavras: UFLA, 2009.

See Also

crd, rbd.

Examples

1
2
3
4
data(ex3)
attach(ex3)
latsd(trat, linha, coluna, resp, quali = TRUE, mcomp = "snk",
sigT = 0.05, sigF = 0.05, unfold=NULL)

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

Related to latsd in ExpDes...