Chih-Sheng Hsieh and Lung-Fei Lee, "A Social Interactions Model with Endogenous Friendship Formation and Selectivity", Journal of Applied Econometrics, Vol. 31, No. 2, 2016, pp. 301-319.