multi.chisq.test: multi.chisq.test

Description Usage Arguments Examples

View source: R/gUtils.R

Description

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

Usage

1
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

1
2
3
4
5
6
7
8
9
## 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"))

llrs/OSAT documentation built on May 23, 2019, 7:18 a.m.