Given a dataset as below
day id time_with_new_teach time_in_prog dur_train dur_appr age graduated
2020-01 02 20 35 4 9 20 no
2020-01 19 10 20 9 19 20 no
2020-02 02 21 36 5 10 21 yes
2020-01 03 1 4 3 7 29 no
....
2020-01 09 24 45 20 19 20 yes
Using graduated as the outcome, which kind of model/packages can i use to determine impact of switching teachers (time_with_new_teach) and time in program (time_in_prog) on graduation probability? Ideally I would like to know if you change your teacher within 6 months, your graduation likelihood increases or decreases by x%. Also for people with time in program over 20 months (time_in_prog > 20), changing your teacher in 6 months (time_in_prog <= 6) leads to x% decrease in graduation probability.