Created
February 5, 2018 14:53
-
-
Save n8thangreen/255f97753a328bb0cadc0daf821c635a to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
two_test_parallel_AND <- function(sens, spec) { | |
list( | |
sensitivity = sens*sens, | |
specificity = spec + spec - spec*spec) | |
} | |
three_test_parallel_AND_2 <- function(sens, spec) { | |
list( | |
sensitivity = 3*sens*sens - 2*sens*sens*sens, | |
specificity = 3*spec*spec - 2*spec*spec*spec) | |
} | |
two_test_parallel_AND(0.9, 0.9) | |
three_test_parallel_AND_2(0.9, 0.9) | |
diseased: | |
test1_pos: | |
p: sens | |
test2_pos: | |
p: sens | |
test2_neg: | |
p: 1 - sens | |
test1_neg: | |
p: 1 - sens | |
test2_pos: | |
p: sens | |
test2_neg: | |
p: 1 - sens | |
not_diseased: | |
test1_pos: | |
p: sens | |
test2_pos: | |
p: sens | |
test2_neg: | |
p: 1 - sens | |
test1_neg: | |
p: 1 - sens | |
test2_pos: | |
p: sens | |
test2_neg: | |
p: 1 - sens |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment