Flexible Methods for the Analysis of Clustered Event Data in Observational Studies