Learn R Programming

SherlockHolmes (version 1.0.2)

contingency: contingency

Description

compute chisq value for a 2 x 2 contingency table

Usage

contingency(inside, outside)

Value

numeric vector of chisq.test() p.values

Arguments

inside

numeric vector of raw counts

outside

numeric vector of raw counts

Examples

Run this code
con<-contingency(inside=c(4,5),outside=c(20,7))

Run the code above in your browser using DataLab