An endogenous regime switching model of ordered choice with an application to federal funds rate target