Hi - I would like to modify my jsl code for regression fit from *linear* (i.e. LOG_ECOLI_Pear = 1.0571713 + 1.2673613*LOG_TURB_PEAR_FNU) to *polynomial degree 2* (i.e. LOG_ECOLI_Pear = 1.0752636 + 1.2104736*LOG_TURB_PEAR_FNU + 0.3169796*(LOG_TURB_PEAR_FNU-1.27247)^2). The jsl code I used for the linear fit is:
obj = Fit Model(
Y( :LOG_ECOLI_PEAR ),
Effects( :LOG_TURB_PEAR_FNU ),
Personality( "Standard Least Squares" ),
Emphasis( "Effect Leverage" ),
Run( :LOG_ECOLI_PEAR )
);
obj << Prediction Formula;
What jsl code should I use for the polynomial fit? Thanks in advance!