cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
  • JMP will suspend normal business operations for our Winter Holiday beginning on Wednesday, Dec. 24, 2025, at 5:00 p.m. ET (2:00 p.m. ET for JMP Accounts Receivable).
    Regular business hours will resume at 9:00 a.m. EST on Friday, Jan. 2, 2026.
  • We’re retiring the File Exchange at the end of this year. The JMP Marketplace is now your destination for add-ins and extensions.

Discussions

Solve problems, and share tips and tricks with other JMP users.
Choose Language Hide Translation Bar
learning_JSL
Level IV

trying to use JSL to save prediction results to a new column based on a model fit

Hi all - I am trying to save prediction results to a new column in my data table based on a model regression fit.  I have tried numerous configurations and the JSL debugger but the results do not end up in the newly created column.   I think I am missing something simple.  Thanks in advance for any assistance.

 

Here is my script:

 

dt = Open( "C:\ fit model100621.jmp" );
New Column( "New Predicted", Numeric, "Continuous", Format( "Best", 12 ) );
Fit Model(
    Y( :BACT ),
    Effects( :VAR1, VAR2, :VAR3 ),
    Personality( "Standard Least Squares" ),
    Emphasis( "Effect Leverage" ),
    Run
);
obj << Prediction Results;

Close( dt, save( "C:\ RESULTS of fit model100321.jmp" ) );

 

1 ACCEPTED SOLUTION

Accepted Solutions
learning_JSL
Level IV

Re: trying to use JSL to save prediction results to a new column based on a model fit

I'm just beginning to learn JSL.  I needed to add text (Obj =) in front of Fit Model for it to recognize the model and results. 

 

So...I'm all set.   Thanks all.

View solution in original post

1 REPLY 1
learning_JSL
Level IV

Re: trying to use JSL to save prediction results to a new column based on a model fit

I'm just beginning to learn JSL.  I needed to add text (Obj =) in front of Fit Model for it to recognize the model and results. 

 

So...I'm all set.   Thanks all.

Recommended Articles