Essays in asset pricing and macroeconomics