Dataset of a retrospective multicenter cohort study on characteristics of immune checkpoint inhibitor-induced encephalitis and comparison with HSV-1 and anti-LGI1 encephalitis. This evidence concerns the gene LGI1 and encephalitis.