Dataset of a retrospective multicenter cohort study on characteristics of immune checkpoint inhibitor-induced encephalitis and comparison with HSV-1 and anti-LGI1 encephalitis. The gene discussed is LGI1; the disease is viral encephalitis.