Essays on Microeconometrics with Applications to Social Network