# Example 1: High Risk
# Portal HTN, Major Resection
liver_decompensation_risk_hcc(1, "major", 8)
# Example 2: Intermediate Risk
# No Portal HTN, Major Resection
liver_decompensation_risk_hcc(0, "major", 8)
# Example 3: Low Risk
# No Portal HTN, Minor Resection, MELD 8
liver_decompensation_risk_hcc(0, "minor", 8)
Run the code above in your browser using DataLab