Participants 18-65 years of age ( N = 1,008 ) who met criteria for major depressive disorder were randomly assigned to 8 weeks of treatment with escitalopram , sertraline , or extended-release venlafaxine .