table2x2 | R Documentation |
2x2 table calculus for teaching
table2x2(
x,
digits = 1,
conf.level = 0.95,
stats = c("table", "rd", "rr", "or", "chisq", "fisher")
)
x |
2x2 table |
digits |
rounding digits |
conf.level |
Confidence level used for constructing confidence intervals. Default is 0.95. |
stats |
subset or all of |
2x2 table calculus for teaching
see example
Thomas A. Gerds <tag@biostat.ku.dk>
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"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.