如何从 JSL 中的双变量拟合图获取正交回归的斜率/截距值?在下面的 JSL 脚本中,我尝试直接从双变量拟合图表获取正交回归的斜率和截距值,但它总是给我错误:-(...这里有任何提示吗?
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);
自动化和脚本编写回复:如何从 JSL 中的双变量拟合图获取正交回归的斜率/截距值?这应该有效
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];
PS 今后,当您将 JSL 输入讨论项时,请使用输入窗口顶部的 JSL 图标。它使条目更具可读性。
回复:如何从 JSL 中的双变量拟合图获取正交回归的斜率/截距值?是的!它工作完美!谢谢!