faganPlot | R Documentation |
Draw the Fagan-Nomogram.
faganPlot(
probPreInit = c(0.1, 0.2, 0.5, 1, 2, 5, 10, 20, 30, 40, 50, 70, 85),
cex = 0.7,
language = c("english", "german"),
title = "Fagan - Nomogramm"
)
faganLine(probPre, likRatio = c(1, 1))
probPreInit |
Pre-test probabilities in percent to be used for the vertical line
to the left. A number or a vector with entries in |
cex |
Text size. |
language |
Either "english" (default) or "german". |
title |
Title of the plot. |
probPre |
Numric vector specifying the pre-test probability. |
likRatio |
Numeric vector specifying the likelihood ratio. |
faganPlot
draws a Fagan-Nomogram.
faganLine
adds lines to a plot obtained by faganPlot
.
Kaspar Rufibach
kaspar.rufibach@gmail.com
Fagan, T.J. (1975). Letter: Nomogram for Bayes Theorem. N. Engl. J. Med, 293, 257.
# empty Fagan plot
faganPlot()
# add Fagan lines
faganLine(probPre = 0.75, likRatio = c(0.9 / 0.37, 0.1 / 0.63))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.