Hi
I have a dataset of students and I want to predict their allotment based on three conditions (Higher GPA, their five preferences, limited seating). For example a person with a high GPA should be assigned to her 1st preferences till the seats are full then it should move to the next preferences.
| Year | Wish 1 | Wish 2 | Wish 3 | Wish 4 | Wish 5 | GPA | Allotment |
| 2016 | Medicine | Pharmacy | Nursing | Dentistry | Physiotherapy | 5 | |
| 2016 | Occupational Therapy | Pharmacy | Diagnostic Radiology | Epidemiology | Nursing | 4.8 | |
| ...etc | | | | | | | |
I have 12 programs and they have limited seating for each.
I looked into loop scripting but couldn't figure out how to include conditions in it.