As others already stated there are many ways and questions.
It also depends on what version you use (Pro or not).
But maybe here is a starting point:
I opened Big Class sample table,
made age to continuous,
and used Fit y by x to build a regression model,
age and height to x,
weight to y,
and used sex (instead of year) for the by rule.
This gave me a report with two regression models, one for male and one for female.
Here already you can compare the numbers like Rsquare etc.
Additionally you can save the model as formula for each by group,
and finally you can plot predicted over actual by age (in your case year then).
And you can review the formula for both groups.
The Script will start the Big Class example.
In Jmp Pro there is a model compairing function.
Is this what you want?
Names Default To Here( 1 );
dt = Open( "$SAMPLE_DATA/Big Class.jmp" );
column(dt, "Age") << set modeling type( "Continuous" );
model = dt << Fit Model(
Y( :weight ),
By( :sex ),
Effects( :age, :height ),
Personality( "Standard Least Squares" ),
Emphasis( "Minimal Report" ),
Run(
:weight << {Summary of Fit( 1 ), Analysis of Variance( 1 ),
Parameter Estimates( 1 ), Scaled Estimates( 0 ),
Plot Actual by Predicted( 0 ), Plot Regression( 0 ),
Plot Residual by Predicted( 0 ), Plot Studentized Residuals( 0 ),
Plot Effect Leverage( 0 ), Plot Residual by Normal Quantiles( 0 ),
Box Cox Y Transformation( 0 )}
)
);
Georg