Muscle loss was linked to higher dementia risk, while obesity showed different patterns depending on age at measurement.