Learn R Programming

OSAT (version 1.20.0)

multi.chisq.test: multi.chisq.test

Description

Do a few Chi-squre tests based on the same data frame.

Usage

multi.chisq.test(x, grpVar = "plates", varList, main = NULL)

Arguments

x
A data frame.
grpVar
Common variables. Default is 'plate'.
varList
A vector of variables.
main
The overall title.

Examples

Run this code
## 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"))

Run the code above in your browser using DataLab