faganPlot {biostatUZH} | R Documentation |
In
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))
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 |
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 |
Nothing is returned. faganPlot
draws a Fagan-Nomogram and faganLine
adds lines for specific
pre-test probabilities and likelihood ratios to the plot.
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() # Fagan lines faganLine(prob.pre = 0.75, lik.ratio = c(0.9/0.37, 0.1/0.63))