The memory of the Depression also shaped modern theories of economics and resulted in many changes in how the government dealt with economic downturns, such as the use of stimulus packages , Keynesian economics , and Social Security .