multi.chisq.test {OSAT}R Documentation

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

## 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"))

[Package OSAT version 1.42.0 Index]