need to modify JSL code -- from a linear model fit to a polynomial curve model fit
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 ),
...