Atrial fibrillation was ascertained from ECG assessments as well as medical records. Use of NSAIDs was obtained from automated prescription records by linkage with participating pharmacies.
We used Cox proportional hazards models to study the association between NSAID drug use and
atrial fibrillation. Use of NSAIDs was included in the model as a time-varying variable.