cochran.qtest: Cochran's Q test

Description Usage Arguments Value Constraints See Also Examples

Description

Performs the Cochran's Q test for unreplicated randomized block design experiments with a binary response variable and paired data.

Usage

1
cochran.qtest(formula, data = NULL, alpha = 0.05, p.method = "fdr", ...)

Arguments

formula

a formula of the form a ~ b | c, where a, b and c give the data values and corresponding groups and blocks, respectively.

data

Wide FLTable or FLTableMD objects

alpha

significance level to compute pairwise comparisons. Always 0.05.

p.method

method for p-values correction. Not used currently.

...

The additional arguments used by FL function: whereconditions WhereConditions to subset data GroupBy Column names defining the different groups in data, if any.

Value

A list with class RVtest. A list of RVtest objects if the input is a FLTableMD object.

Constraints

p.value.multcomp is NA in result

See Also

var.test for R reference implementation.

Examples

1
2
3
4
5
6
7
8
response <- c(0,1,1,0,0,1,0,1,1,1,1,1,0,0,1,1,0,1,0,1,1,0,0,1,0,1,1,0,0,1)
fact <- gl(3,1,30,labels=LETTERS[1:3])
block <- gl(10,3,labels=letters[1:10])
Rdata <- data.frame(response=response,block=block,fact=fact)
dropFLTestTable()
flt <- as.FLTable(Rdata,tableName="ARBaseTestTempTable")
RVtestObject <- cochran.qtest(response~fact|block,data=flt)
print(RVtestObject)

Fuzzy-Logix/AdapteR documentation built on May 6, 2019, 5:07 p.m.