Three essays on the econometrics of social justice