Three essays in applied microeconomics