On using data to design policy when agents search or are not fully rational