作者chungyuandye (养花种鱼数月亮看星星)
看板Statistics
标题Re: [问题] 残差分析中的缺适性检定
时间Sun Apr 13 12:05:54 2008
※ 引述《annie7853 (妮妮)》之铭言:
: 缺适性检定这部分
: 老师上课的时候在这部分讲的不是很详细
: 课本上又只有一个变数x和y
: 但是 根据学长姐考古题出现了3个变数
: 那这样缺适性检定是否要一个一个做呢?
: 题目如下:
: model y=Bo+B1X1+B2X2+B3X3+e
: y: 5 4 5 3 2 1
: X1: 1 0 1 0 -1 -1
: X2: 1 1 1 -1 -1 -1
: X3: 1 1 0 0 -1 -1
: 就上列资料 求Lack Of Fit Test alfa=0.05
: 麻烦大家帮我解答一下 谢谢
SPSS要计算Lack Of Fit似乎只能用GLM来计算!
把Y当依变数,X1~X3当共变数!
在选项中勾选lack of fit
Tests of Between-Subjects Effects
Dependent Variable:y
|---------------|-----------------------|--|-----------|-------|----|
|Source |Type III Sum of Squares|df|Mean Square|F |Sig.|
|---------------|-----------------------|--|-----------|-------|----|
|Corrected Model|12.800a |3 |4.267 |16.000 |.059|
|---------------|-----------------------|--|-----------|-------|----|
|Intercept |66.667 |1 |66.667 |250.000|.004|
|---------------|-----------------------|--|-----------|-------|----|
|x1 |1.800 |1 |1.800 |6.750 |.122|
|---------------|-----------------------|--|-----------|-------|----|
|x2 |.229 |1 |.229 |.857 |.452|
|---------------|-----------------------|--|-----------|-------|----|
|x3 |.050 |1 |.050 |.188 |.707|
|---------------|-----------------------|--|-----------|-------|----|
|Error |.533 |2 |.267 | | |
|---------------|-----------------------|--|-----------|-------|----|
|Total |80.000 |6 | | | |
|---------------|-----------------------|--|-----------|-------|----|
|Corrected Total|13.333 |5 | | | |
|---------------|-----------------------|--|-----------|-------|----|
a. R Squared = .960 (Adjusted R Squared = .900)
Lack of Fit Tests
Dependent Variable:y
|-----------|--------------|--|-----------|----|----|
|Source |Sum of Squares|df|Mean Square|F |Sig.|
|-----------|--------------|--|-----------|----|----|
|Lack of Fit|.033 |1 |.033 |.067|.839|
|-----------|--------------|--|-----------|----|----|
|Pure Error |.500 |1 |.500 | | |
|-----------|--------------|--|-----------|----|----|
--
养花种鱼数月亮赏星星
http://chungyuandye.blogspot.com
--
※ 发信站: 批踢踢实业坊(ptt.cc)
◆ From: 118.232.189.101