The thing that helped people the most was relationships. A person who has a strong relationship is more likely to get out of depression.
The next thing is to have a good income. That may be hard to do, but if you can manage it then you have a better chance of getting out of depression. High income and having religious faith helped with recovery from depression. People who earn more than $80,000 per year are more likely to recover than those earning less than $20,000 per year.
The next thing you can control is to get enough exercise.
Older people and women are also more likely to fully recover. From another side, people who experienced abuse or anxiety disorders in the past were less likely to recover.
Esme Fuller-Thomson, Senyo Agbeyaka, Deborah M. LaFond, Mercedes Bern-Klug “Flourishing after depression: Factors associated with achieving complete mental health among those with a history of depression” Psychiatry Research, Volume 242, August 2016