Technology, R&D, and the economy