The results of functional enrichment analysis, immune infection level analysis, correlation analysis and literature validation demonstrated STAT5B was closely associated with the evaluation of response to anti-PD-1 therapy. This evidence concerns the gene STAT5B and infection.