PSUBDBC: Analysis: DBC experiments in split-plot

Description Usage Arguments Value Note Author(s) References Examples

View source: R/PSUBDBC_function.R

Description

Analysis of an experiment conducted in a randomized block design in a split-plot scheme using fixed effects analysis of variance.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
PSUBDBC(
  f1,
  f2,
  block,
  response,
  norm = "sw",
  homog = "bt",
  alpha.f = 0.05,
  alpha.t = 0.05,
  mcomp = "tukey",
  quali = c(TRUE, TRUE),
  grau = NA,
  transf = 1,
  geom = "bar",
  theme = theme_classic(),
  ylab = "Response",
  xlab = "",
  color = "rainbow",
  textsize = 12,
  dec = 3,
  legend = "Legend",
  errorbar = TRUE,
  addmean = TRUE,
  ylim = NA,
  point = "mean_se",
  fill = "lightblue",
  angle = 0,
  family = "sans",
  posi = "right",
  angle.label = 0
)

Arguments

f1

Numeric or complex vector with plot levels

f2

Numeric or complex vector with subplot levels

block

Numeric or complex vector with blocks

response

Numeric vector with responses

norm

Error normality test (default is Shapiro-Wilk)

homog

Homogeneity test of variances (default is Bartlett)

alpha.f

Level of significance of the F test (default is 0.05)

alpha.t

Significance level of the multiple comparison test (default is 0.05)

mcomp

Multiple comparison test (Tukey (default), LSD, Scott-Knott and Duncan)

quali

Defines whether the factor is quantitative or qualitative (qualitative)

grau

Degree of polynomial in case of quantitative factor (default is 1)

transf

Applies data transformation (default is 1; for log consider 0)

geom

Graph type (columns or segments (For simple effect only))

theme

ggplot2 theme (default is theme_classic())

ylab

Variable response name (Accepts the expression() function)

xlab

Treatments name (Accepts the expression() function)

color

When the columns are different colors (Set fill-in argument as "trat")

textsize

Font size (default is 12)

dec

Number of cells (default is 3)

legend

Legend title name

errorbar

Plot the standard deviation bar on the graph (In the case of a segment and column graph) - default is TRUE

addmean

Plot the average value on the graph (default is TRUE)

ylim

y-axis limit

point

Point type for regression ("mean_se","mean_sd","mean" or "all")

fill

Defines chart color (to generate different colors for different treatments, define fill = "trat")

angle

x-axis scale text rotation

family

Font family (default is sans)

posi

Legend position

angle.label

Label angle

Value

The table of analysis of variance, the test of normality of errors (Shapiro-Wilk, Lilliefors, Anderson-Darling, Cramer-von Mises, Pearson and Shapiro-Francia), the test of homogeneity of variances (Bartlett or Levene), the test of independence of Durbin-Watson errors, the test of multiple comparisons (Tukey, LSD, Scott-Knott or Duncan) or adjustment of regression models up to grade 3 polynomial, in the case of quantitative treatments. Non-parametric analysis can be used by the Friedman test. The column chart for qualitative treatments is also returned. The function also returns a standardized residual plot.

Note

The ordering of the graph is according to the sequence in which the factor levels are arranged in the data sheet. The bars of the column and segment graphs are standard deviation.

In the final output when transformation (transf argument) is different from 1, the columns resp and respo in the mean test are returned, indicating transformed and non-transformed mean, respectively.

Author(s)

Gabriel Danilo Shimizu

References

Principles and procedures of statistics a biometrical approach Steel, Torry and Dickey. Third Edition 1997

Multiple comparisons theory and methods. Departament of statistics the Ohio State University. USA, 1996. Jason C. Hsu. Chapman Hall/CRC.

Practical Nonparametrics Statistics. W.J. Conover, 1999

Ramalho M.A.P., Ferreira D.F., Oliveira A.C. 2000. Experimentacao em Genetica e Melhoramento de Plantas. Editora UFLA.

Scott R.J., Knott M. 1974. A cluster analysis method for grouping mans in the analysis of variance. Biometrics, 30, 507-512.

Examples

1
2
3
4
library(AgroR)
data(tomate)
attach(tomate)
PSUBDBC(parc, subp, bloco, resp)

AgroR documentation built on July 16, 2021, 9:06 a.m.