The linear structural relation for several groups of data