Recursive macroeconomic theory