R package to calculate personalized advantage index