chisq.bintest(formula, data, alpha = 0.05, p.method = "fdr")
a ~ b
, where a
and b
give the data values and corresponding groups, respectively. a
can be a numeric vector or a factor, with only two possible values (except NA).formula
. By default the variables are taken from environment(formula)
.p.adjust
.fisher.bintest
in that case.G.bintest
, fisher.bintest
response <- c(rep(0:1,c(40,60)),rep(0:1,c(55,45)),rep(0:1,c(65,35)))
fact <- gl(3,100,labels=LETTERS[1:3])
chisq.bintest(response~fact)
Run the code above in your browser using DataLab