faganPlot: Fagan-Nomogram

Description Usage Arguments Value Author(s) References Examples

Description

In

Usage

1
2
3
4
5
faganPlot(prob.pre.init = c(0.1, 0.2, 0.5, 1, 2, 5, 10, 
    20, 30, 40, 50, 70, 85), 
    text = 0.8, language = c("german", "english")[1], 
    tit = "Fagan - Nomogramm")
faganLine(prob.pre, lik.ratio = c(1, 1))

Arguments

prob.pre.init

Pre-test probabilities to be used for the vertical line to the left. May be a number or a vector withe entries in (0,1).

text

Size of the text displayed in the plot.

language

Choose language.

tit

Title to be added to plot, or NA if to be left blank.

prob.pre

A single number or a vector of pre-test probabilities to be drawn a line in the Fagan-plot for.

lik.ratio

Likelihood ratios to be used. Must be of same length as prob.pre.

Value

Nothing is returned. faganPlot draws a Fagan-Nomogram and faganLine adds lines for specific pre-test probabilities and likelihood ratios to the plot.

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

1
2
3
4
5
# empty Fagan plot
faganPlot()

# Fagan lines
faganLine(prob.pre = 0.75, lik.ratio = c(0.9/0.37, 0.1/0.63))

biostatUZH documentation built on May 2, 2019, 6:06 p.m.