H L D I A B E T E S R R r , c , p = H L D I A B S H I F T r , c , p ∗ ∫ e ( ( H L B M I r , p − ( H L B M I r , p − a v g B M I S t d D e v + 21 ) ) ∗ L o g ( R R c , p ) ) ∗ P ( H L B M I ) ∗ d B M I {\displaystyle HLDIABETESRR_{r,c,p}=HLDIABSHIFT_{r,c,p}*\int {e^{((HLBMI_{r,p}-({\frac {HLBMI_{r,p}-avgBMI}{StdDev}}+21))*Log(RR_{c,p}))}}*P(HLBMI)*dBMI}