faganPlot: Fagan-Nomogram

View source: R/faganPlot.R

faganPlotR Documentation

Fagan-Nomogram

Description

Draw the Fagan-Nomogram.

Usage

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))

Arguments

probPreInit

Pre-test probabilities in percent to be used for the vertical line to the left. A number or a vector with entries in (0,100).

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.

Value

faganPlot draws a Fagan-Nomogram.

faganLine adds lines to a plot obtained by faganPlot.

Author(s)

Kaspar Rufibach
kaspar.rufibach@gmail.com

References

Fagan, T.J. (1975). Letter: Nomogram for Bayes Theorem. N. Engl. J. Med, 293, 257.

Examples


# empty Fagan plot
faganPlot()

# add Fagan lines
faganLine(probPre = 0.75, likRatio = c(0.9 / 0.37, 0.1 / 0.63))


felix-hof/biostatUZH documentation built on Sept. 27, 2024, 1:48 p.m.