cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
  • Sign-in to the JMP Community will be unavailable intermittently Dec. 6-7 due to a system update. Thank you for your understanding!
  • We’re retiring the File Exchange at the end of this year. The JMP Marketplace is now your destination for add-ins and extensions.
  • JMP 19 is here! Learn more about the new features.

Discussions

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

how to get the slope/intercept values of orthogonal regression from a Bivariate Fit Chart in JSL?

In the following JSL script, I tried to get the values of slope and intercept of the orthogonal regression directly from the Bivariate Fit chart, but it always gives me error :-(... Any hint here?

biv = dt << Bivariate( Y( :New ), X( :Ref ), Fit Orthogonal( 1 ) );

rbiv = biv << Report;

slopebox = rbiv[Outline Box( 1 ),If Box(3), Outline Box(3),Table Box( 4 ), Number Col Box( 12 )];

slope = slopebox<< get(1);
1 ACCEPTED SOLUTION

Accepted Solutions
txnelson
Super User

Re: how to get the slope/intercept values of orthogonal regression from a Bivariate Fit Chart in JSL?

This should work

names default to here(1);
dt = current data table();
biv = dt << Bivariate( Y( :New ), X( :Ref ), Fit Orthogonal( 1 ) );

rbiv = biv << Report;

slopebox = rbiv["Orthogonal Fit Ratio=1.000",NumberColBox( "Slope" )];

slope = (slopebox << get)[1];

P.S.  In the future, when you enter JSL into a Discussion item, please use the JSL icon at the top of the entry window.  It makes for a far more readable entry.

Jim

View solution in original post

2 REPLIES 2
txnelson
Super User

Re: how to get the slope/intercept values of orthogonal regression from a Bivariate Fit Chart in JSL?

This should work

names default to here(1);
dt = current data table();
biv = dt << Bivariate( Y( :New ), X( :Ref ), Fit Orthogonal( 1 ) );

rbiv = biv << Report;

slopebox = rbiv["Orthogonal Fit Ratio=1.000",NumberColBox( "Slope" )];

slope = (slopebox << get)[1];

P.S.  In the future, when you enter JSL into a Discussion item, please use the JSL icon at the top of the entry window.  It makes for a far more readable entry.

Jim
zxu11
Level III

Re: how to get the slope/intercept values of orthogonal regression from a Bivariate Fit Chart in JSL?

YES! It works perfect! Thanks!

Recommended Articles