楼主: casperyc
15588 4

fisher LSD 怎么做 [推广有奖]

  • 0关注
  • 0粉丝

硕士生

61%

还不是VIP/贵宾

-

威望
0
论坛币
26 个
通用积分
0
学术水平
0 点
热心指数
1 点
信用等级
0 点
经验
1445 点
帖子
218
精华
0
在线时间
56 小时
注册时间
2009-7-29
最后登录
2019-6-9

楼主
casperyc 发表于 2010-3-7 08:51:24 |AI写论文

+2 论坛币
k人 参与回答

经管之家送您一份

应届毕业生专属福利!

求职就业群
赵安豆老师微信:zhaoandou666

经管之家联合CDA

送您一个全额奖学金名额~ !

感谢您参与论坛问题回答

经管之家送您两个论坛币!

+2 论坛币
  1. x=c(145,40,40,120,180,
  2.         140,155,90,160,95,
  3.         195,150,205,110,160,
  4.         45,40,195,65,145,
  5.         195,230,115,235,225,
  6.         120,55,50,80,45
  7.         )

  8. y2=c(
  9.         rep(as.character(1),5),
  10.         rep(as.character(2),5),
  11.         rep(as.character(3),5),
  12.         rep(as.character(4),5),
  13.         rep(as.character(5),5),
  14.         rep(as.character(6),5)
  15.         )      

  16. crd2=data.frame(x,y2)
  17. model1=aov(x~y2,data=crd2)
  18. TukeyHSD(model1)
复制代码
tukey HSD 能这样做

请问

1-怎么做 fisher LSD 呢?

2-附件ws1sols第8,9页上的 table 要怎么做

3-输出能不能用***表示 siginicant? (附件ws1sols  第5,6页那样 )

4-standardised residual 要怎么得到  


谢谢


====================================

因为是 MAC 所以 SAS 不能用

我 想知道 SAS 里面这些功能 R 对应的 是那些 code ?

谢谢
二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

关键词:Fisher Fish fis LSD SHE LSD Fisher

ws1.pdf
下载链接: https://bbs.pinggu.org/a-564084.html

89.21 KB

ws1sols.pdf

99.14 KB

ws2.pdf

79.83 KB

沙发
casperyc 发表于 2010-3-8 00:02:55
anyone?????

thanks!

藤椅
davidhaitaopan 发表于 2010-3-8 16:36:52
给个例子,希望有帮助

First, I perform the Tukey’s Test ,also called Tukey’s Honestly Significant Difference Test( abbreviated as HSD).
We already knew that the HSD test focuses on the experiment wise error rate, a, and assumes that the number of replicates at each level are equal. To use the function, an aov object is required as the first argument.

> #eg 3-1
> X=c(575,542,530,539,570,
+     565,593,590,579,610,
+     600,651,610,637,629,
+     725,700,715,685,710)
> A=factor(rep(1:4,each=5))
> #construct a data.frame
> shuju=data.frame(X,A)
> aov.shuju=aov(X~A,data=shuju)
> shuju.tukey=TukeyHSD(aov.shuju,ordered=T)
> shuju.tukey
  Tukey multiple comparisons of means
    95% family-wise confidence level
    factor levels have been ordered

Fit: aov(formula = X ~ A, data = shuju)

$A
     diff        lwr       upr     p adj
2-1  36.2   3.145624   69.25438   0.0294279
3-1  74.2   41.145624  107.25438  0.0000455
4-1  155.8  122.745624  188.85438  0.0000000
3-2  38.0   4.945624   71.05438    0.0215995
4-2  119.6   86.545624  152.65438  0.0000001
4-3  81.6   48.545624   114.65438  0.0000146


We can see immediately that all pairs of means are significantly different. Therefore, each power setting results in a mean etch rate that differs from the mean etch rate at any other power setting.
We also can plot the confidence intervals, which is more explicitly.


> plot(shuju.tukey)



Conclusions are the same as before.

Now we perform the LSD test to our above example. The LSD test essentially involves performing a series of pair wise t test. It is important to note that with LSD, we have to specify the individual error rate, not the experimentwise or family error rate.
Assume here that we wish to find the LSD between level 1 and 3.

> n1=sum(aov.shuju$model$A=='1')
> n1
[1] 5
> n3=sum(aov.shuju$model$A=='3')
> n3
[1] 5
> s=sqrt(sum((aov.shuju$residuals)^2)/aov.shuju$df.residual)
> s
[1] 18.26746
> s^2
[1] 333.7
> tcrit=qt(0.025,aov.shuju$df.residual,lower.tail=F)
> tcrit
[1] 2.119905
> LSD=tcrit*s*sqrt(1/n1+1/n3)
> LSD
[1] 24.49202
> #and
> y1.bar=sum(shuju$X[A=='1'])/5
> y1.bar
[1] 551.2
> y3.bar=sum(shuju$X[A=='3'])/5
> y3.bar
[1] 625.4
> y1.bar-y3.bar
[1] -74.2
>

Because   , so this implies that level 1 and level 3 ‘s means are significantly different. You can follow the exactly the same routine to compare the rest pair of means.

板凳
casperyc 发表于 2010-3-9 20:42:33
davidhaitaopan 发表于 2010-3-8 16:36
给个例子,希望有帮助

First, I perform the Tukey’s Test ,also called Tukey’s Honestly Significant Difference Test( abbreviated as HSD).
We already knew that the HSD test focuses on the experiment wise error rate, a, and assumes that the number of replicates at each level are equal. To use the function, an aov object is required as the first argument.

> #eg 3-1
> X=c(575,542,530,539,570,
+     565,593,590,579,610,
+     600,651,610,637,629,
+     725,700,715,685,710)
> A=factor(rep(1:4,each=5))
> #construct a data.frame
> shuju=data.frame(X,A)
> aov.shuju=aov(X~A,data=shuju)
> shuju.tukey=TukeyHSD(aov.shuju,ordered=T)
> shuju.tukey
  Tukey multiple comparisons of means
    95% family-wise confidence level
    factor levels have been ordered

Fit: aov(formula = X ~ A, data = shuju)

$A
     diff        lwr       upr     p adj
2-1  36.2   3.145624   69.25438   0.0294279
3-1  74.2   41.145624  107.25438  0.0000455
4-1  155.8  122.745624  188.85438  0.0000000
3-2  38.0   4.945624   71.05438    0.0215995
4-2  119.6   86.545624  152.65438  0.0000001
4-3  81.6   48.545624   114.65438  0.0000146


We can see immediately that all pairs of means are significantly different. Therefore, each power setting results in a mean etch rate that differs from the mean etch rate at any other power setting.
We also can plot the confidence intervals, which is more explicitly.


> plot(shuju.tukey)



Conclusions are the same as before.

Now we perform the LSD test to our above example. The LSD test essentially involves performing a series of pair wise t test. It is important to note that with LSD, we have to specify the individual error rate, not the experimentwise or family error rate.
Assume here that we wish to find the LSD between level 1 and 3.

> n1=sum(aov.shuju$model$A=='1')
> n1
[1] 5
> n3=sum(aov.shuju$model$A=='3')
> n3
[1] 5
> s=sqrt(sum((aov.shuju$residuals)^2)/aov.shuju$df.residual)
> s
[1] 18.26746
> s^2
[1] 333.7
> tcrit=qt(0.025,aov.shuju$df.residual,lower.tail=F)
> tcrit
[1] 2.119905
> LSD=tcrit*s*sqrt(1/n1+1/n3)
> LSD
[1] 24.49202
> #and
> y1.bar=sum(shuju$X[A=='1'])/5
> y1.bar
[1] 551.2
> y3.bar=sum(shuju$X[A=='3'])/5
> y3.bar
[1] 625.4
> y1.bar-y3.bar
[1] -74.2
>

Because   , so this implies that level 1 and level 3 ‘s means are significantly different. You can follow the exactly the same routine to compare the rest pair of means.
也就是说  LSD 没有单独的 命令可以做啊?

谢谢

报纸
DAWN1406 发表于 2022-3-14 13:29:22
网页版SPSSAU可以做LSD以及其他事后多重比较。

您需要登录后才可以回帖 登录 | 我要注册

本版微信群
加好友,备注cda
拉您进交流群
GMT+8, 2025-12-9 05:52