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
UserID16644
Level V

Save Predicted using JSL

Hi all,

How can I save the Predicteds formula in a Bivariate plot using JSL?

1 ACCEPTED SOLUTION

Accepted Solutions
txnelson
Super User

Re: Save Predicted using JSL

Here is an example

Names Default To Here( 1 );
dt = Open( "$SAMPLE_DATA/Big Class.jmp" );
obj = dt << Bivariate( Y( :Weight ), X( :Height ) );
obj << Fit line( {Save Predicteds} );

Taken from the Scripting Index, with small modification

Jim

View solution in original post

2 REPLIES 2
txnelson
Super User

Re: Save Predicted using JSL

Here is an example

Names Default To Here( 1 );
dt = Open( "$SAMPLE_DATA/Big Class.jmp" );
obj = dt << Bivariate( Y( :Weight ), X( :Height ) );
obj << Fit line( {Save Predicteds} );

Taken from the Scripting Index, with small modification

Jim

Re: Save Predicted using JSL

Here is another way to show the flexibility of Bivariate.

 

Names Default To Here( 1 );

dt = Open( "$SAMPLE_DATA/Big Class.jmp" );

obj = dt << Bivariate( Y( :Weight ), X( :Height ), Fit Line( 1 ) );

obj << (Curve[1] << Save Predicteds);

Recommended Articles