6.5 Two 您所在的位置:网站首页 parametric 6.5 Two

6.5 Two

2023-02-23 16:06| 来源: 网络整理| 查看: 265

6.5 Two-way non-parametric ANOVA

Two-way non-parametric ANOVA is an extension of the non-parametric one-way methods discussed previously. The basic procedure is to rank all the data in the sample from smallest to largest, then carry out a 2-way ANOVA on the ranks. This can be done either for replicated or unreplicated data.

Using the data file Stu2wdat.csv , do a two-factor ANOVA to examine the effects of sex and location on rank(rdwght).

aov.rank F) ## (Intercept) 1499862 1 577.8673 < 2.2e-16 *** ## sex 58394 1 22.4979 4.237e-06 *** ## location 1128 1 0.4347 0.5105 ## sex:location 1230 1 0.4738 0.4921 ## Residuals 472383 182 ## --- ## Signif. codes: 0 '***' 0.001 '**' 0.01 '*' 0.05 '.' 0.1 ' ' 1

To calculate the Scheirer-Ray-Hare extension to the Kruskall-Wallis test, you must first calculate the total mean square (MS), i.e. the variance of the ranked data. In this case, there are 186 observations, their ranks are therefore the series 1, 2, 3, …, 186. The variance can be calculated simply as var(1:186) (Isn’t R neat? Cryptic maybe, but neat). So we can compute the H statistic for each term:

Hsex


【本文地址】

公司简介

联系我们

今日新闻

    推荐新闻

    专题文章
      CopyRight 2018-2019 实验室设备网 版权所有