Cancer pain patients (468) receiving transdermal fentanyl were genotyped for 31 single nucleotide polymorphisms in 19 genes: CASP1, BDNF, CRP, LY96, IL6, IL1B, TGFB1, TNF, IL10, IL2, TLR2, TLR4, MYD88, IL6R, OPRM1, ARRB2, COMT, STAT6 and ABCB1. Lasso and backward stepwise generalised linear regression were used to identify non-genetic and genetic predictors, respectively, of pain control (average Brief Pain Inventory < 4), cognitive dysfunction (Mini-Mental State Examination ≤ 23), sickness response and opioid adverse event complaint. The gene discussed is STAT6; the disease is cancer.