The Macroeconomics of Sticky Prices with Generalized Hazard Functions