我可以看出这个问题是在 2012 年发布的,但从未回答过,所以这里又出现了:
有没有办法绘制置信区间和预测区间正交的双变量平台中的回归。 我也想保存区间方程。 “拟合线”存在两个选项,即 OLS 线性回归。
如果该选项不存在,我想请求实施。
嗨,伊恩,
感谢您提供此 JSL 脚本。 但是,该脚本仅提升斜率和截距的估计值。我很好奇我将如何使用此输出来估计戴明回归中的预测区间? 如有任何帮助,我将不胜感激。
谢谢
使用 JMP Pro,您可以尝试自举:
NamesDefaultToHere(1);
// Sample data
dt = NewTable("Orthogonal Regression",
NewColumn("x1", Formula(RandomUniform(-1, 1))),
NewColumn("x2", Formula(RandomUniform(-1, 1))),
AddRows(50)
);
// Fit orthogonal
fo = dt << Bivariate(Y( :x2 ), X( :x1 ), Fit Orthogonal( Equal Variances ));
// Bootstrap fitted parameters
dt2 = Report(fo)[TableBox(2)] << Bootstrap(1000);
// Look at the result
dt2 << Distribution(
Continuous Distribution( Column( :Intercept ) ),
Continuous Distribution( Column( :Slope ) ),
SendToReport(
Dispatch( {"Intercept"}, "Quantiles", OutlineBox, {Close( 1 )} ),
Dispatch( {"Intercept"}, "Summary Statistics", OutlineBox, {Close( 1 )} ),
Dispatch( {"Slope"}, "Quantiles", OutlineBox, {Close( 1 )} ),
Dispatch( {"Slope"}, "Summary Statistics", OutlineBox, {Close( 1 )} )
)
);