cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Discussions

Solve problems, and share tips and tricks with other JMP users.
%3CLINGO-SUB%20id%3D%22lingo-sub-718561%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%E5%A6%82%E4%BD%95%E4%BB%8E%20JSL%20%E4%B8%AD%E7%9A%84%E5%8F%8C%E5%8F%98%E9%87%8F%E6%8B%9F%E5%90%88%E5%9B%BE%E8%8E%B7%E5%8F%96%E6%AD%A3%E4%BA%A4%E5%9B%9E%E5%BD%92%E7%9A%84%E6%96%9C%E7%8E%87%2F%E6%88%AA%E8%B7%9D%E5%80%BC%EF%BC%9F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-718561%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3E%E5%9C%A8%E4%B8%8B%E9%9D%A2%E7%9A%84%20JSL%20%E8%84%9A%E6%9C%AC%E4%B8%AD%EF%BC%8C%E6%88%91%E5%B0%9D%E8%AF%95%E7%9B%B4%E6%8E%A5%E4%BB%8E%E5%8F%8C%E5%8F%98%E9%87%8F%E6%8B%9F%E5%90%88%E5%9B%BE%E8%A1%A8%E8%8E%B7%E5%8F%96%E6%AD%A3%E4%BA%A4%E5%9B%9E%E5%BD%92%E7%9A%84%E6%96%9C%E7%8E%87%E5%92%8C%E6%88%AA%E8%B7%9D%E5%80%BC%EF%BC%8C%E4%BD%86%E5%AE%83%E6%80%BB%E6%98%AF%E7%BB%99%E6%88%91%E9%94%99%E8%AF%AF%3A-(...%E8%BF%99%E9%87%8C%E6%9C%89%E4%BB%BB%E4%BD%95%E6%8F%90%E7%A4%BA%E5%90%97%EF%BC%9F%3C%2FP%3E%0A%3CPRE%3E%3CCODE%20class%3D%22%20language-jsl%22%3Ebiv%20%3D%20dt%20%26lt%3B%26lt%3B%20Bivariate(%20Y(%20%3ANew%20)%2C%20X(%20%3ARef%20)%2C%20Fit%20Orthogonal(%201%20)%20)%3B%0A%0Arbiv%20%3D%20biv%20%26lt%3B%26lt%3B%20Report%3B%0A%0Aslopebox%20%3D%20rbiv%5BOutline%20Box(%201%20)%2CIf%20Box(3)%2C%20Outline%20Box(3)%2CTable%20Box(%204%20)%2C%20Number%20Col%20Box(%2012%20)%5D%3B%0A%0Aslope%20%3D%20slopebox%26lt%3B%26lt%3B%20get(1)%3B%3C%2FCODE%3E%3C%2FPRE%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-718561%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CLINGO-LABEL%3E%E8%87%AA%E5%8A%A8%E5%8C%96%E5%92%8C%E8%84%9A%E6%9C%AC%E7%BC%96%E5%86%99%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-718566%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%E5%9B%9E%E5%A4%8D%EF%BC%9A%E5%A6%82%E4%BD%95%E4%BB%8E%20JSL%20%E4%B8%AD%E7%9A%84%E5%8F%8C%E5%8F%98%E9%87%8F%E6%8B%9F%E5%90%88%E5%9B%BE%E8%8E%B7%E5%8F%96%E6%AD%A3%E4%BA%A4%E5%9B%9E%E5%BD%92%E7%9A%84%E6%96%9C%E7%8E%87%2F%E6%88%AA%E8%B7%9D%E5%80%BC%EF%BC%9F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-718566%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3E%E8%BF%99%E5%BA%94%E8%AF%A5%E6%9C%89%E6%95%88%3C%2FP%3E%0A%3CPRE%3E%3CCODE%20class%3D%22%20language-jsl%22%3Enames%20default%20to%20here(1)%3B%0Adt%20%3D%20current%20data%20table()%3B%0Abiv%20%3D%20dt%20%26lt%3B%26lt%3B%20Bivariate(%20Y(%20%3ANew%20)%2C%20X(%20%3ARef%20)%2C%20Fit%20Orthogonal(%201%20)%20)%3B%0A%0Arbiv%20%3D%20biv%20%26lt%3B%26lt%3B%20Report%3B%0A%0Aslopebox%20%3D%20rbiv%5B%22Orthogonal%20Fit%20Ratio%3D1.000%22%2CNumberColBox(%20%22Slope%22%20)%5D%3B%0A%0Aslope%20%3D%20(slopebox%20%26lt%3B%26lt%3B%20get)%5B1%5D%3B%3C%2FCODE%3E%3C%2FPRE%3E%0A%3CP%3EPS%20%E4%BB%8A%E5%90%8E%EF%BC%8C%E5%BD%93%E6%82%A8%E5%B0%86%20JSL%20%E8%BE%93%E5%85%A5%E8%AE%A8%E8%AE%BA%E9%A1%B9%E6%97%B6%EF%BC%8C%E8%AF%B7%E4%BD%BF%E7%94%A8%E8%BE%93%E5%85%A5%E7%AA%97%E5%8F%A3%E9%A1%B6%E9%83%A8%E7%9A%84%20JSL%20%E5%9B%BE%E6%A0%87%E3%80%82%E5%AE%83%E4%BD%BF%E6%9D%A1%E7%9B%AE%E6%9B%B4%E5%85%B7%E5%8F%AF%E8%AF%BB%E6%80%A7%E3%80%82%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-720879%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%E5%9B%9E%E5%A4%8D%EF%BC%9A%E5%A6%82%E4%BD%95%E4%BB%8E%20JSL%20%E4%B8%AD%E7%9A%84%E5%8F%8C%E5%8F%98%E9%87%8F%E6%8B%9F%E5%90%88%E5%9B%BE%E8%8E%B7%E5%8F%96%E6%AD%A3%E4%BA%A4%E5%9B%9E%E5%BD%92%E7%9A%84%E6%96%9C%E7%8E%87%2F%E6%88%AA%E8%B7%9D%E5%80%BC%EF%BC%9F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-720879%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3E%E6%98%AF%E7%9A%84%EF%BC%81%E5%AE%83%E5%B7%A5%E4%BD%9C%E5%AE%8C%E7%BE%8E%EF%BC%81%E8%B0%A2%E8%B0%A2%EF%BC%81%3C%2FP%3E%3C%2FLINGO-BODY%3E
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