Description Usage Arguments Details Value References Examples
Computes positive and negative likelihood ratios (LRs) given sensitivity and specificity of a test. LRs can be used to calculate the probability of disease after a positive or negative test.
1 | lr(se, sp)
|
se |
sensitivity of a test (values between 0 and 1) |
sp |
specificity of a test (values between 0 and 1) |
LRs are calculated as follows:
LRpos = \frac {sensitivity}{1-specificity}
LRneg = \frac {1-sensitivity}{specificity}
lrpos |
the positive likelihood ratio |
lrneg |
the negative likelihood ratio |
Fletcher R, Fletcher S (2005). Clinical epidemiology: the essentials (4th ed). Lippincott Williams & Wilkins. Philadelphia.
1 2 3 | lr(se=0.9, sp=0.7)
#The positive likelihood ratio is 3 and the egative likelihood ratio is 0.14
|
$lrpos
[1] 3
$lrneg
[1] 0.1428571
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.