This is the field of behavioral economics. Spending is a form of behavior, after all, and it can be influenced by many circumstances. The ones mentioned in the question are examples of such concerns, but there are also personal financial pressures and natural inclinations towards spending habits to take into account.