Currently Fit Y by X platform where a single Y and single X with a By role does not turn on Fit Group. But in JSL, you can wrap the script in Fit Group and it works.
Normally in Fit Y by X, when you do multiple X's or multiple Y's, you will get the Fit Group (using Big Class.jmp example file):
Fit Group(
Oneway(
Y( :height ),
X( :age ),
),
Oneway(
Y( :weight ),
X( :age ),
)
);
If you run Fit Y by X for say two continuous, and a categorical in the By() role, you cannot arrange by rows:
Bivariate(
Y( :weight ),
X( :height ),
By( :age )
);
But using JSL, you can simply wrap it inside the Fit Group and it works:
Fit Group(
Bivariate(
Y( :weight ),
X( :height ),
By( :age )
)
);
as does the more general call to Fit Y by X:
Fit Group(
Fit Y by X(
Y( :weight ),
X( :height ),
By( :age )
)
);
Could this be allowed to be the default, or at least allow as a Platform Preference?
What is saves to the table or script window looks like this:
Fit Group(
Bivariate(
Y( :weight ),
X( :height ),
Where( :age == 12 )
),
Bivariate(
Y( :weight ),
X( :height ),
Where( :age == 13 )
),
Bivariate(
Y( :weight ),
X( :height ),
Where( :age == 14 )
),
Bivariate(
Y( :weight ),
X( :height ),
Where( :age == 15 )
),
Bivariate(
Y( :weight ),
X( :height ),
Where( :age == 16 )
),
Bivariate(
Y( :weight ),
X( :height ),
Where( :age == 17 )
)
);