I assume the issue is that the By needs to be associated with each of the separate Bivariate instances
Fit Group(
Bivariate(Y(:A), X(:AAA),By(:Group123)),
Bivariate(Y(:A), X(:BBB),By(:Group123)),
Bivariate(Y(:A), X(:CCC),By(:Group123)),
Bivariate(Y(:B), X(:AAA),By(:Group123)),
Bivariate(Y(:B), X(:BBB),By(:Group123)),
Bivariate(Y(:B), X(:CCC),By(:Group123)),
<<{Arrange in Rows(3)}
);
Jim