Learn R Programming

Publish (version 2023.01.17)

print.table2x2: print results of 2x2 contingency table analysis

Description

print results of 2x2 contingency table analysis

Usage

# S3 method for table2x2
print(x, digits = 1, ...)

Value

invisible x

Arguments

x

object obtained with table2x2

digits

rounding digits

...

not used

Author

Thomas A. Gerds <tag@biostat.ku.dk>

See Also

table2x2

Examples

Run this code
table2x2(table("marker"=rbinom(100,1,0.4),"response"=rbinom(100,1,0.1)))
table2x2(matrix(c(71,18,38,8),ncol=2),stats="table")
table2x2(matrix(c(71,18,38,8),ncol=2),stats=c("rr","fisher"))

Run the code above in your browser using DataLab