Estimating behavioural heterogeneity under regime switching · Study