Social selection and peer influence in an online social network