fisher.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.chisq.bintest, G.bintestresponse <- c(0,0,0,0,0,0,1,0,0,0,0,0,1,0,1,1,1,0,0,1,1,1,1,1,1,0,0,1,1,1)
fact <- gl(3,10,labels=LETTERS[1:3])
fisher.bintest(response~fact)Run the code above in your browser using DataLab