# Example 1: Success Likely
# RR 20, Vt 0.4 L (400 mL)
# RSBI = 20 / 0.4 = 50
rsbi_score(20, 0.4)
# Example 2: Failure Likely
# RR 35, Vt 300 mL (0.3 L)
# RSBI = 35 / 0.3 = 116.7
rsbi_score(35, 300, "mL")
Run the code above in your browser using DataLab