Code and data files for "Accounting For Endogeneity in Matching Function Estimation"