绘制置信区间图(特别是在minitab或e-view中)

时间:2015-03-28 14:53:19

标签: graph statistics regression confidence-interval minitab-16

我用4个变量做了回归模型。我得到了以下回归方程式

$$ Y = 0.0761 - 0687X_1 - 3.46X_2 - 1.937 X_3 $$

我使用Bonferroni方法计算了这四个β值的置信区间。我得到了这些beta值;

$ - 0.123461 \ le \ beta_0 \ le 0.27596 $

$ - 3.18842 \ le \ beta_1 \ le 1.81442 $

$ - 8.96 \ le \ beta_2 \ le 2.04036 $

$ - 3.435 \ le \ beta_3 \ le -0.4389 $

然后,我使用Scheffé方法计算了这四个beta值的置信区间。我得到了这些beta值;

$ - 0.1685 \ le \ beta_0 \ le 0.3207 $

$ - 3.75314 \ le \ beta_1 \ le 2.379 $

$ - 10.20212 \ beta_2 \ le 3.28212 $

$ - 3.773 \ le \ beta_3 \ le -0.100704 $

现在,我想为这些β值绘制图表

enter image description here

但我不能为每个beta值绘制这样的图表。请通过使用minitab或手工向我展示一种方法。

请注意,我不知道如何使用R.我只知道minitab和e-view

1 个答案:

答案 0 :(得分:3)

可以使用R和ggplot2完成,如下所示:

> x = 1:20
> y = x*5 + sample(1:10, 20, replace=T)
> ggplot(data.frame(x,y), aes(x,y))+geom_smooth(method='lm')

enter image description here