Essays in applied macroeconomics