作者bmka (偶素米蟲)
站內Statistics
標題Re: [問題] 檢定不同回歸的係數
時間Sat Mar 28 21:19:07 2009
※ 引述《tew (咖啡王子)》之銘言:
: ※ 引述《qq331 (ok~)》之銘言:
: : 有兩條迴歸式
: : y1=a+b*x1+c*x2
: : y2=d+e*x1+f*x2
: : 想檢定兩條迴歸式的係數相減後是否為0
: : 也就是想檢定 a-d=0, b-e=0, c-f=0
: : 我用mtest寫,如下:
: : proc reg data=filename;
: : model y1 y2=x1 x2;
: : mtest intercept;
: mtest y1-y2;
: : mtest x1;
: mtest y1-y2, x1;
: : mtest x2;
: mtest y1-y2, x2;
: : run;
: : 可是這樣寫,感覺是在檢定 a=d=0, b=e=0, c=f=0
: : 並不符合我要的結果
: : 想請問板上是否有高手知道該怎麼修改?
: : 謝謝~
: 修改成這樣就可以了
tew大的方法是ok的
原po應該是想用 MANOVA, 只是不知道正確指令
Let me throw out anther idea:
You may treat the data as pretest-posttest data.
Then test whether the interaction terms between time point and the covariates
(intercept, x1, x2) have a coefficent 0.
This may improve the statistical power if y1 and y2 are correlated.
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 71.126.187.93
※ 編輯: bmka 來自: 71.126.187.93 (03/28 21:27)
1F:推 qq331:我看不太懂b大的寫法= =a..兩個方法得到的結果是一樣的嗎? 03/29 01:09
2F:→ bmka:Under the normality assumption this should be the same 03/29 01:30
3F:→ bmka:as the MANOVA approach that you originally intended to do 03/29 01:30
4F:推 qq331:那請問要怎麼用MANOVA改寫?謝謝~ 03/29 01:34
※ 編輯: bmka 來自: 71.126.187.93 (03/29 01:48)