A Bayesian and maximum likelihood analysis of a gradual switching regression in a simultaneous equation framework