Multivariate Cox models were used to assess the influence of time-dependent appropriate and inappropriate ICD therapy ( shock and antitachycardia pacing ) and randomized programming arm on all-cause mortality .