Association analysis of successive events data in the presence of competing risks