R codes: The Split Population Logit
Under work!