- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Get Direct Link
- Report Inappropriate Content
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Get Direct Link
- Report Inappropriate Content
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
2 REPLIES 2
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Get Direct Link
- Report Inappropriate Content
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Get Direct Link
- Report Inappropriate Content
Re: how to get the slope/intercept values of orthogonal regression from a Bivariate Fit Chart in JSL?
YES! It works perfect! Thanks!