Function Repository Resource:

GlaucomaRisk

Source Notebook

Compute probability of having glaucoma given the intraocular pressure

Contributed by: Siria Sadeddin

ResourceFunction["GlaucomaRisk"][p]

returns the probability of having glaucoma given the intraocular pressure p.

Details

p should be a nonnegative real number, a String or a Quantity.
If p is a number with no unit, millimeters of mercury is taken as the pressure unit.
If p is a String, the corresponding pressure unit should be provided, e.g. "10 mmHg".
p can be given as a Quantity whose unit is a pressure unit.
The result of ResourceFunction["GlaucomaRisk"] is returned as a percentage.
Intraocular pressure is the only modifiable variable used to prevent or delay progression of glaucoma.

Examples

Basic Examples (3) 

Find the glaucoma risk corresponding to a given intraocular pressure, assuming units in millimeters of mercury:

In[1]:=
ResourceFunction["GlaucomaRisk"][29]
Out[1]=

Obtain the glaucoma risk for an intraocular pressure given as a String:

In[2]:=
ResourceFunction["GlaucomaRisk"]["110 pascals"]
Out[2]=
In[3]:=
ResourceFunction["GlaucomaRisk"]["0.03 atmospheres"]
Out[3]=

Find the glaucoma risk for an intraocular pressure specified as a quantity in units of pascals:

In[4]:=
ResourceFunction["GlaucomaRisk"][Quantity[106, "Pascals"]]
Out[4]=

Neat Examples (1) 

Calculate the probability of having glaucoma given the intraocular pressure:

In[5]:=
ListLinePlot[Table[ResourceFunction["GlaucomaRisk"][x], {x, 0, 100}], Filling -> Axis, AxesLabel -> {"mmHg", "%"}, GridLines -> {{22}, None}, GridLinesStyle -> Directive[Orange, Dashed], PlotLabel -> "Probability of having Glacoma given the intraocular pressure"]
Out[5]=

Publisher

WolframSpecialProjects

Version History

  • 1.0.0 – 06 January 2021

Source Metadata

License Information