I'm writing some JSL script to fit a model to a data table. Rather than work out the syntax from scratch, I've used the usual trick of running it from the menu, and then sending the script to a script window so I can then copy, amend and/or generalize it in any way I want:
dt1i << Fit Model(
Y( :Response ),
Effects( :Respondent, :Product ),
Personality( Standard Least Squares ),
Emphasis( Minimal Report ),
Run Model(
:Response << {Lack of Fit( 0 ), Plot Actual by Predicted( 0 ),
Plot Regression( 0 ), Plot Residual by Predicted( 0 ),
Plot Effect Leverage( 0 )}
)
I now want to modify this so that I append the predicted values onto the original data set. I can do that from the menu easily enough by selecting the appropriate option after running the model, but I can't work out how to modify the above script to perform that additional task. Can anyone tell me (a) what modification I need to make, and (b) how I can determine this sort of thing for myself? I know it's very simple, but I can't find what I'm looking for in the manual here, and I haven't yet managed to hit the right syntax by trial and error.
Many thanks,
David