In this paper, we propose a state-varying endogenous regime switching model (the SERS model), which includes the endogenous regime switching model by Chang, Choi and Park (2017), the CCP model, as a special case. To estimate the unknown parameters involved in the SERS model, we propose a maximum...