Hi!I'm Ana, a portuguese Public Health Master student and i was hoping you could help me with my tiny problem.I beg your pardon for intruding in this forum but i'm new with Pynomo Software and, although i don't think it's dificult to work with it, i'm having a lot of trouble with creating a nomogram that relates pre and posttest probability with likelihood ratio.I would like to create a simple nomogram (a much much more simple nomogram than this http://www.myreckonings.com/modernnomograms/Doc_What_Are_My_Chances_UMAP_32-4-2011.pdf), with three scales, kinda like type 1 example, but i'm not able to transform my equation into the formula that this type allows. So, my question is: how i put this formula

LR=[ProbPret x (1-ProbPost)]/[(1-ProbPret) x ProbPost]

into a type1? Or what is the nomogram script that will allow me to draw this equation?I know that my doubt has more to do with maths that with the software itself, but if you could help that would speed up my job.

The more complicated circular nomogram for Bayes' Theorem that you reference was actually designed by Leif Roschier (the PyNomo author and host of this forum), Joe Marasco and myself. To create a simpler Type 1 nomogram of three parallel scales like the original 1975 Fagan Nomogram for Bayes' Theorem, you need to convert the equation for LR into a sum of functions of each variable. Logarithms can be used to convert multiplications and divisions into additions and subtractions, and it turns out that we can separate the terms into such a sum:

LR = posttestodds / prettestodds

but odds = Probability/(1-Probability), so

LR = [postestprob/(1-postestprob)] / [pretestprob/(1-pretestprob)]

Rearranging this produces your equation but with posttestprob and pretestprob swapped. I believe this is the correct version.

We can take the logs of both sides, where log(a/b) = log a - log b, and get

The code below will draw this nomogram. I've included grid_length parameters to make the minor tick marks longer, as they are very short otherwise. If you remove or comment out the isopleth_values parameter line the sample isopleth will not be drawn on the nomogram.

If you want a more uncluttered version that looks just like the original Fagan Nomogram, you can specify which individual tick marks to include. Here the tick marks are added to both sides of the scales, with the labels only on one side, so the tick marks run through the scales. Note that there are some versions of Fagan's Nomogram on the web and in print that incorrectly show the end values on the middle scale shifted outward.