PSUBFAT2DBC: Analysis: Plot subdivided into randomized blocks with a...

Description Usage Arguments Value Examples

View source: R/PSUBFAT2DBC_function.R

Description

This function performs the analysis of a randomized block design in a split-plot with a subplot in a double factorial scheme.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
PSUBFAT2DBC(
  f1,
  f2,
  f3,
  block,
  resp,
  alpha.f = 0.05,
  alpha.t = 0.05,
  mcomp = "tukey"
)

Arguments

f1

Numeric or complex vector with plot levels

f2

Numeric or complex vector with splitplot levels

f3

Numeric or complex vector with splitsplitplot levels

block

Numeric or complex vector with blocks

resp

Numeric vector with responses

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 and Duncan)

Value

Analysis of variance of fixed effects and multiple comparison test of Tukey, Scott-Knott, LSD or Duncan.

Examples

1
2
3
4
5
6
7
8
f1=rep(c("PD","PDE","C"), e = 40);f1=factor(f1,unique(f1))
f2=rep(c(300,400), e = 20,3);f2=factor(f2,unique(f2))
f3=rep(c("c1", "c2", "c3", "c4"), e = 5,6);f3=factor(f3,unique(f3))
bloco=rep(paste("B",1:5),24); bloco=factor(bloco,unique(bloco))
set.seed(10)
resp=rnorm(120,50,5)
PSUBFAT2DBC(f1,f2,f3,bloco,resp,alpha.f = 0.5) # para soltar interação tripla
PSUBFAT2DBC(f1,f2,f3,bloco,resp,alpha.f = 0.4) # para soltar interação dupla

AgronomiaR/AgroR documentation built on Nov. 14, 2021, 12:10 a.m.