The impact of health behaviors and life quality on gender differences in mortality