An 18-year study of 24,000 older adults found that unmarried people were less at risk for dementia, challenging the belief that married people are healthier.