# Example 1: Healthy Profile
# Glucose 85, Trigs 100, HDL 60, BMI 22
# Numerator: ln(170+100)*22 = ln(270)*22 = 5.6*22 = 123.2
# Denominator: ln(60) = 4.09
# Score = 30.1
mets_ir_score(85, 100, 60, 22)
# Example 2: Metabolic Syndrome Profile
# Glucose 110, Trigs 250, HDL 35, BMI 32
# Numerator: ln(220+250)*32 = ln(470)*32 = 6.15*32 = 196.8
# Denominator: ln(35) = 3.56
# Score = 55.3
mets_ir_score(110, 250, 35, 32)
Run the code above in your browser using DataLab