# Example 1: Positive mAPI
# Frequent wheezing (1), Eczema (1 Major), Eosinophilia
#(1 Minor - insufficient alone, but 1 major is enough)
# Result: Positive
modified_asthma_predictive_index(2, 1, 0, 1, 0, 0, 0, 1)
# Example 2: Negative mAPI
# Frequent wheezing (1), Only 1 Minor (Eosinophilia)
# Result: Negative
modified_asthma_predictive_index(3, 1, 0, 0, 0, 0, 0, 1)
Run the code above in your browser using DataLab