We used logistic regressions for the overall sample and stratified by gender to determine whether risk of new-onset epilepsy was associated with prior history of psychiatric ( i.e. , depression , psychosis , bipolar disorder , schizophrenia , posttraumatic stress disorder ( PTSD ) , adjustment disorder , and substance abuse/dependence ) and neurologic conditions ( i.e. , cerebrovascular disease , dementia , traumatic brain injury , brain tumor , metastatic cancer ) .