JMP > JSL > Get Formula > Extract ParametersHi JMP Community,
I have generated multiple prediction formulas stored in columns and I need to extract the parameters to evaluate which variables are common across formulas.
When I call for dt:Column X << Get formula, the output is not a string or list that can be used with standard pattern extraction functions (e.g., Words (), Munger ()...).
Questions:
- Am I using the right function to collect the formula parameters by using << Get Formula?
- If not, what would be a more appropriate function?
- If yes, is there a trick to convert the << Get formula output to a string, list, or matrix?
Thank you for your help.
Best,
TS
ScriptingRe: JMP > JSL > Get Formula > Extract ParametersBeing pretty "Old School", I handle it by retrieving the formula as a character string
Names Default To Here( 1 );
dt = Current Data Table();
x = Char( dt:predicted height << get formula );
Re: JMP > JSL > Get Formula > Extract ParametersIf the interest is in the variable names inside the formula, it might be easier to work directly with the formula expression. Here is an example which extracts unique symbol names out of a formula.
dt = open("$sample_data/Reliability/Locomotive.jmp");
ex = column(dt, 3)<<GETFORMULA></GETFORMULA>Re: JMP > JSL > Get Formula > Extract ParametersHi txnelson,
That was simple.
Thanks.
Best,
TS