The first-of-its-kind analysis used a detailed NatureScore database to assess mental health at the neighborhood level.