Earlier quoted context omitted.
SF has the same number of homeless people, as a percentage of the population, as NYC: https://www.hudexchange.info/resources/documents/ahar-2013-p... (page 15) SF: 7,000 / 840,000 = 0.8% NY: 64,000 / 8,400,000 = 0.8%
Yet NYC doesn't have the perception of human poop plastered all over every available surface in the same way SF does.
To me this is the soft version of the broken window theory. If your city can't care enough to clean up its messes, yes people will treat the whole thing like a trash heap.
Contrast.
In Shibuya every single night, 365 days a year, drunk people puke and toss waste all over an area about 4 SF city blocks. Every single morning a team of govt workers clean it to fairly acceptable levels. The homeless also congregate under the nearby train tracks, but there are so many public FREE toilets that no, I have never seen shit on the street.
SF is dirty because the people prefer low taxes to real government services. Shibuya CITY tax is hefty and rises considerably if your income is above a certain level, maybe 100k, I forget the exact numbers.