Detecting Social Ties and Copying Events from Affiliation Data