I found a way to add the script as a formula for a column. I followed these steps but it's returning an error.
1.If I do that, I think I have to remove the first line of the script since it's a formula in the the window itself; i.e there's no need to write a function to open the data set, correct?
Now all I'd have in the formula box are the two lines of code:
obj = dt << Bivariate( Y( :Weight ), X( :Height ) );
obj << Fit Polynomial( 1, {Save Predicteds} );
2.Then all I should have to do is swap the Y and X variables with the ones in my column.
3. Is the Fit Polynomial equivalen to the Fit Line option or should I re-write that at "Fit Line".
Result: After I did that I got an error: Send expects scriptable object.
Any suggestions?