A Macro Analysis of the Effect of Artificial Intelligence on the Economy