Trying to figure out how to script a complicated formula from curve fitting using the predictive formula. Its straight forward if all the data is lumped together and there is only one formula however if I break up the data into smaller sets I get stuck with scripting. I can do it interactively but I have many different data tables so doing in manually will get very tedious. (Thanks in advance)
I have used JMP example data Big Class as an example
dt = Current Data Table(); //Big Class active
biv = Bivariate(
Y( :height ),
X( :weight ),
by( :sex, :age ),
Fit Special( xTran( "Log" ), {Line Color( {212, 73, 88} )}, save predicteds )
);
biv << (curve[1] << save predicteds);
Column( N Cols( dt ) ) << set name( "Predicted Values" );
dt << NewColumn("Weight_150", set each value(150));
dt << NewColumn("Weight_180", set each value(180));
// Stuck here want to use the "Predicted Values" formula on the new weights columns added
// basically need a script to copy over formula from "Predicted Values" which is now very complicated
// and replace "weight" with "weight_150" and "weight_180" in the formula, creating two new columns <BR />// extrapolated values at 150 and 180