How is resistive index (RI) calculated?

How is resistive index (RI) calculated?