powered by
Create nomogram plot.
nomogrammer( TP = NULL, TN = NULL, FP = NULL, FN = NULL, pretestProb = NULL, SN = NULL, SP = NULL, PLR = NULL, NLR = NULL, Detail = FALSE, NullLine = FALSE, LabelSize = (14/5), Verbose = FALSE )
ggplot object of nomogram plot.
Number of true positive cases.
Number of true negative cases.
Number of false positive cases.
Number of false negative cases.
Pretest probability (prevalence/base rate/prior probability) of characteristic, as a number between 0 and 1.
Sensitivity of the test at a given cut point, as a number between 0 and 1.
Specificity of the test at a given cut point, as a number between 0 and 1.
Positive likelihood ratio of the test at a given cut point.
If TRUE, overlay key statistics onto the plot.
TRUE
If TRUE, add a line from prior prob through LR = 1.
Label size.
Print out relevant metrics in the console.
Create nomogram plot from the following at a given cut point:
1) true positives (TP), true negatives (TN), false positives (FP), and false negatives (FN)
2) pretest probability (pretestProb), sensitivity (SN), and specificity (SP), OR
3) pretest probability (pretestProb), positive likelihood ratio (PLR), and negative likelihood ratio (NLR)
https://github.com/achekroud/nomogrammer
Other accuracy: accuracyAtCutoff(), accuracyAtEachCutoff(), accuracyOverall(), optimalCutoff()
accuracyAtCutoff()
accuracyAtEachCutoff()
accuracyOverall()
optimalCutoff()
nomogrammer( TP = 253, TN = 386, FP = 14, FN = 347) nomogrammer( pretestProb = .60, SN = 0.421, SP = 0.965) nomogrammer( pretestProb = .60, PLR = 12, NLR = 0.6)
Run the code above in your browser using DataLab