multi.chisq.test {OSAT} | R Documentation |
Do a few Chi-squre tests based on the same data frame.
multi.chisq.test(x, grpVar = "plates", varList, main = NULL)
x |
A data frame. |
grpVar |
Common variables. Default is 'plate'. |
varList |
A vector of variables. |
main |
The overall title. |
## create a random assignment and check it library("OSAT") data(example.setup) set.seed(10) c1 <- getLayout(gc) # available wells c1 <- c1[order(runif(nrow(c1))),] # shuffle randomly ranomSetup <- cbind(pheno, c1[1:nrow(pheno), ]) # create a sample assignment multi.chisq.test(ranomSetup, grpVar='plates', varList=c("SampleType", "Race", "AgeGrp"))