Here we provide the code we used in our analysis (Murphy, M.T, Bernet, M.L., 2015, MNRAS submitted) to test for a dust bias. This code is an implementation of the SDSS QSO selection algorithm as outlined in Richards G. T. et al., 2002, AJ, 123, 2945
See https://zenodo.org/badge/latestdoi/18560/mbernet79/SDSS_QSOsel_Bernet