Estimate Dynamic/Static Panel Data Model with Endogeneity and Discontinuity / Kink Thresholds