calcTaronesTest: Tarones test for Stratified OR

View source: R/Tarones.R

calcTaronesTestR Documentation

Tarones test for Stratified OR

Description

calcTaronesTest is ued to test whether the OR in different strata are different

Usage

calcTaronesTest(mylist, referencerow = 2)

Arguments

mylist

A list of matrix Stratified by a Variable

referencerow

Unexposed row

Value

string with results

Examples

mymatrix1 <- matrix(c(4,5,5,103),nrow=2,byrow=TRUE)
colnames(mymatrix1) <- c("Disease","Control")
rownames(mymatrix1) <- c("Exposure","Unexposed")
mymatrix2 <- matrix(c(10,3,5,43),nrow=2,byrow=TRUE)
colnames(mymatrix2) <- c("Disease","Control")
rownames(mymatrix2) <- c("Exposure","Unexposed")
mylist <- list(mymatrix1,mymatrix2)
calcTaronesTest(mylist)
## Not run: 
calcTaronesTest(mymatrix1)

## End(Not run)

the8thday/ClinStats documentation built on July 20, 2022, 11:36 p.m.