Risk of incident dementia varies with different onset and courses of depression.