On issues as varied as education and crime, Americans often have a rosier view of how things are going in their communities than in the nation as a whole.