The social ecology of treatment gain