Predictors of yearly influenza vaccination in hospitalized and community-based patients