To work out the rankings, researchers used metrics like child poverty, food insecurity, homelessness and more.