A control-function correction for endogeneity in random coefficients models: The case of choice-based recommender systems. (March 2023)