Observed Contracts and Unobserved Selection: Essays in Applied Microeconomics