Microfoundations for switching behavior in heterogeneous agent models: An experiment · Study