This dissertation focuses on the link between corporate behavior and macroeconomic phenomena. It is comprised of three separate but related chapters: The first chapter asks whether increases in firms' outsourcing can explain the downward trend of the investment to GDP ratio of the US. I develop a model with heterogeneous firms and a fixed cost to enter outsourcing. I test the model's implications using a novel dataset collected from US computer manufacturing firms' annual reports and find that empirical facts are consistent with the model. I find outsourcing firms invest less while produce more. Also, the lessening effect of outsourcing on investment is increasing over time. In the second paper I first show that the divergent trends in t...