R: Computes post test probability to have a dissease based on...
fncEBMPostTest
R Documentation
Computes post test probability to have a dissease based on the pre-test probability and the likelihood ratio of the diagnostic test
Description
This dialog box permits you to define the probability of a patient to have a disease
before performing a diagnostic test (pre-test probability), and the likelihood ratio
of the diagnostic test. Based on these two, the post-test probability to actually
have the disease is computed.
This is computed the following way:
pre-test odds <- pre-test probability / (1 - pre-test probability)
post-test odds <- pre-test odds * likelihood ratio
post-test probability<- post-test odds / (post-test odds + 1)
Usage
fncEBMPostTest(.pretest, .LR)
Arguments
.pretest
Pre-test probability.
.LR
Likekihood ratio of the diagnostic test.
Value
The post-test probability of having the dissease.
Author(s)
Daniel-Corneliu Leucuta <danny.ldc@gmail.com>
Examples
fncEBMPostTest(.12, 5.7)
Results
R version 3.3.1 (2016-06-21) -- "Bug in Your Hair"
Copyright (C) 2016 The R Foundation for Statistical Computing
Platform: x86_64-pc-linux-gnu (64-bit)
R is free software and comes with ABSOLUTELY NO WARRANTY.
You are welcome to redistribute it under certain conditions.
Type 'license()' or 'licence()' for distribution details.
R is a collaborative project with many contributors.
Type 'contributors()' for more information and
'citation()' on how to cite R or R packages in publications.
Type 'demo()' for some demos, 'help()' for on-line help, or
'help.start()' for an HTML browser interface to help.
Type 'q()' to quit R.
> library(RcmdrPlugin.EBM)
Error in library(RcmdrPlugin.EBM) :
there is no package called 'RcmdrPlugin.EBM'
Execution halted