RATIONALE: Escitalopram may help improve depression and quality of life in patients with advanced lung or gastrointestinal cancer. It is not yet known whether escitalopram is more effective than a placebo in treating depression in patients with advanced lung or gastrointestinal cancer.