The vast majority of homeless in NYC and SF are homeless for economic reasons, like insufficient income, lack of affordable housing or the loss of income.
The studies I'm thinking of explicitly measure homelessness due to relationship issues and divorce, violence, mental illness and drug addiction, as well as economic issues. Over the last 15 years, people, and specifically families, have become homeless increasingly because of economic issues.