A sample of racially and socioeconomically diverse pregnant women from a northeastern US city was assigned to the intervention group in a randomized controlled trial to prevent excessive gestational weight gain ( n = 1014 ) .