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%C2%BFC%C3%B3mo%20obtener%20los%20valores%20de%20pendiente%2Fintersecci%C3%B3n%20de%20la%20regresi%C3%B3n%20ortogonal%20a%20partir%20de%20un%20gr%C3%A1fico%20de%20ajuste%20bivariado%20en%20JSL%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-718561%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EEn%20el%20siguiente%20script%20JSL%2C%20intent%C3%A9%20obtener%20los%20valores%20de%20pendiente%20e%20intersecci%C3%B3n%20de%20la%20regresi%C3%B3n%20ortogonal%20directamente%20del%20gr%C3%A1fico%20de%20ajuste%20bivariado%2C%20pero%20siempre%20me%20da%20un%20error%20%3A-(...%20%C2%BFAlguna%20pista%20aqu%C3%AD%3F%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%3EAutomatizaci%C3%B3n%20y%20secuencias%20de%20comandos%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%3ERe%3A%20%C2%BFC%C3%B3mo%20obtener%20los%20valores%20de%20pendiente%2Fintersecci%C3%B3n%20de%20una%20regresi%C3%B3n%20ortogonal%20a%20partir%20de%20un%20gr%C3%A1fico%20de%20ajuste%20bivariado%20en%20JSL%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-718566%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EEsto%20deber%C3%ADa%20funcionar%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%3EPD%3A%20En%20el%20futuro%2C%20cuando%20ingrese%20JSL%20en%20un%20elemento%20de%20discusi%C3%B3n%2C%20use%20el%20%C3%ADcono%20JSL%20en%20la%20parte%20superior%20de%20la%20ventana%20de%20entrada.%20Es%20una%20entrada%20mucho%20m%C3%A1s%20legible.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-720879%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ERe%3A%20%C2%BFC%C3%B3mo%20obtener%20los%20valores%20de%20pendiente%2Fintersecci%C3%B3n%20de%20una%20regresi%C3%B3n%20ortogonal%20a%20partir%20de%20un%20gr%C3%A1fico%20de%20ajuste%20bivariado%20en%20JSL%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-720879%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3E%C2%A1S%C3%8D!%20%C2%A1Funciona%20perfecto!%20%C2%A1Gracias!%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