msir: Model-based Sliced Inverse Regression