Population-wide analysis of differences in disease progression patterns in men and women