Learn R Programming

DanielBiostatistics10th (version 0.2.6)

print.binTab: Print Boolean Test-&-Disease and/or Risk-&-Disease Table

Description

Print Boolean test-&-disease and/or risk-&-disease table.

Usage

# S3 method for binTab
print(x, prevalence, ansi = identical(.Platform$GUI, "RStudio"), ...)

Value

Function print.binTab does not have a returned value.

Arguments

x

a binTab

prevalence

(optional) numeric scalar or vector, prevalence of disease

ansi

logical scalar, whether to allow ANSI escapes. ANSI escapes are rendered beautifully in RStudio console, but not in R vanilla GUI, nor in package rmarkdown.

...

potential parameters, currently not in use

Details

Function print.binTab prints the diagnostic test characteristics, e.g., sensitivity, specificity, predictive values, and diagnostic accuracy, together with their \(95\%\) Clopper-Pearson exact confidence intervals.

References

https://en.wikipedia.org/wiki/Diagnostic_odds_ratio

Examples

Run this code
(x = array(c(95L, 10L, 31L, 82L), dim = c(2L, 2L)))
binTab(x)
print(binTab(x), prevalence = c(.0001, .001, .01))

Run the code above in your browser using DataLab