Patients were randomly assigned to an inpatient ( @ months of hospitalization on working days ) or an ambulatory ( @ days of hospital visits at increasing intervals during a @-month period ) treatment program .