I don't want to misrepresent it, but my understanding is that an expressed preference for working remotely is consistently associated with high self-evaluation of productivity. The abstract says "our results also suggest that software developers’ self-rated productivity is more strongly related to task variety and ability to work remotely."
https://storage.googleapis.com/pub-tools-public-publication-...