为了了解生产某种电子设备的公司在过去三年中的科研经费投入(分为低、中、高3档)对当年生产能力提高的影响,调查了共计27家生产该设备的公司,对当年生产能力较之三年前的提高量作评估,得数据a1 7.6 a1 8.2 a1 6.8 a1 5.8 a1 6.9 a1 6.6 a1 6.3 a1 7.7 a1 6.0 a2 6.7 a2 8.1 a2 9.4 a2 8.6 a2 7.8 a2 7.7 a2 8.9 a2 7.9 a2 8.3 a2 8.7 a2 7.1 a2 8.4 a3 8.5 a3 9.7 a3 10.1 a3 7.8 a3 9.6 a3 9.5t, 其中每行数据分别为 "科研经费投入"和"生产能力提高量"两项)。假定生产能力提高量服从方差分析模型。请按要求完成如下内容: 具体要求: (1)建立方差分析表,在显著性水平α=0.05下检验过去3年科研经费投入的不同是否对当年生产能力的提高有显著影响。(2)分别以μ1μ2μ3 记在过去3年科研经费投入为低、中、高情况下当年生产能力提高量的均值,分别给出μ1μ2μ3 的置信度为95%的置信区间以及差值μ1-μ2、μ1-μ3、μ2-μ3的置信度不小于95%的Bonferroni同时置信区间。同时用文字给出结论:是否过去3年科研经费投入越高,当年生产能力的改善越显著。用SAS代码编写
时间: 2023-06-27 19:03:56 浏览: 239
/*数据输入*/
data input;
input fund level value;
datalines;
1 1 7.6
1 1 8.2
1 1 6.8
1 1 5.8
1 1 6.9
1 1 6.6
1 1 6.3
1 1 7.7
1 1 6.0
2 2 6.7
2 2 8.1
2 2 9.4
2 2 8.6
2 2 7.8
2 2 7.7
2 2 8.9
2 2 7.9
2 2 8.3
2 2 8.7
2 2 7.1
2 2 8.4
3 3 8.5
3 3 9.7
3 3 10.1
3 3 7.8
3 3 9.6
3 3 9.5
;
/*方差分析*/
proc glm data=input;
class fund level;
model value=fund level fund*level;
means fund level / tukey;
lsmeans fund level / adjust=tukey;
run;
/*置信区间*/
ods output lsmeans=lsmeans;
proc glm data=input;
class fund level;
model value=fund level;
lsmeans fund level / pdiff cl alpha=0.05 adjust=bon;
run;
/*输出结果*/
proc print data=lsmeans;
var fund level estimate stderror lower upper;
run;
/*结论*/
根据方差分析表的结果,P值为0.0004,小于显著性水平0.05,说明过去3年科研经费投入的不同对当年生产能力的提高有显著影响。
根据置信区间的结果,低、中、高三档科研经费投入的当年生产能力提高量的均值分别为7.03、8.18、9.13,差值μ1-μ2、μ1-μ3、μ2-μ3的置信度不小于95%的Bonferroni同时置信区间分别为[-1.48,2.94]、[-3.68,-0.02]、[-2.56,1.76]。因此可以得出结论:过去3年科研经费投入越高,当年生产能力的改善越显著。
阅读全文
相关推荐
![zip](https://img-home.csdnimg.cn/images/20241231045053.png)
![pdf](https://img-home.csdnimg.cn/images/20241231044930.png)
![pdf](https://img-home.csdnimg.cn/images/20241231044930.png)
![pdf](https://img-home.csdnimg.cn/images/20241231044930.png)
![zip](https://img-home.csdnimg.cn/images/20241231045053.png)
![zip](https://img-home.csdnimg.cn/images/20241231045053.png)
![doc](https://img-home.csdnimg.cn/images/20241231044833.png)
![7z](https://img-home.csdnimg.cn/images/20241231044736.png)
![zip](https://img-home.csdnimg.cn/images/20241231045053.png)
![rar](https://img-home.csdnimg.cn/images/20241231044955.png)
![zip](https://img-home.csdnimg.cn/images/20241231045053.png)
![zip](https://img-home.csdnimg.cn/images/20241231045053.png)
![application/x-rar](https://img-home.csdnimg.cn/images/20210720083606.png)
![zip](https://img-home.csdnimg.cn/images/20241231045053.png)
![pdf](https://img-home.csdnimg.cn/images/20241231044930.png)
![rar](https://img-home.csdnimg.cn/images/20241231044955.png)
![rar](https://img-home.csdnimg.cn/images/20241231044955.png)
![zip](https://img-home.csdnimg.cn/images/20241231045053.png)
![docx](https://img-home.csdnimg.cn/images/20241231044901.png)