Age at onset of epilepsy, pharmacoresistance, and cognitive outcomes