Essays in macroeconomics and financial economics