For colorectal cancer, we observed two significant patterns of nonlinear associations (P < 0.0026), including s-shaped for the duration of drugs used in diabetes, beta-blocking agents, HMG CoA reductase inhibitors, and glucocorticoids, and l-shaped for the duration of agents acting on the renin-angiotensin system. Here, HMGCR is linked to diabetes mellitus.