In the univariate generalized estimating equations analysis, levels of albumin, log‐transformed CRP, NLR, and PLR were significantly associated with depression in pancreatic cancer patients (p < 0.05). This evidence concerns the gene CRP and familial pancreatic carcinoma.