Description Usage Arguments Value Constraints See Also Examples
Performs the Cochran's Q test for unreplicated randomized block design experiments with a binary response variable and paired data.
1 | cochran.qtest(formula, data = NULL, alpha = 0.05, p.method = "fdr", ...)
|
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:
|
A list with class RVtest
.
A list of RVtest
objects if the input is a FLTableMD object.
p.value.multcomp is NA in result
var.test
for R reference implementation.
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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.