Increased risk factors for dementia later in life include age, marital status, body mass index and amount of sleep, a data analysis found.