Hi,
Can anybody tell me how to reference the tables of summary statistics that are created by the Fit Model platform, but to do it in such a way that the resulting script is robust against upgrades in JMP?
In the past I've done this sort of thing:
// Open a simple data table;
dt = open("$SAMPLE_DATA/Big Class.jmp");
// Fit a model to it;
fmo = Fit Model(
Y( :Height ),
Effects( :Sex ),
Personality( Standard Least Squares ),
Emphasis( Minimal Report ),
Run(
:Height << {Lack of Fit( 0 ), Plot Actual by Predicted( 0 ),
Plot Regression( 0 ), Plot Residual by Predicted( 0 ),
Plot Effect Leverage( 0 )}
)
);
// Send the resuting output to a report;
fmor = fmo << report;
// Display the tree structure of the report so I can see where the table box I actually want is;
fmor << show tree structure;
// Finally, transform that table box into a data table;
dtmeans = fmor[TableBox(5)] << make into data table;
In this particular instance I get away with the above in both JMP 10 and JMP 11 because the table number happens to be the same in both versions - but I know I can't in general rely on that to be the case, because the platform could have been upgraded in the more recent version.
What I therefore need to know is: how can I reference what I've above called "fmor[TableBox(5)]" using a name that is invariant to upgrades in JMP? Does this table have a name? If so, what is it? Is it what appears in the tree structure to be called the "HelpKey"?
Many thanks for any help or examples received.