### 技术控

今日:33| 主题:58136

# [其他] One Way Analysis of Variance Exercises

lzxohgzxf 投递于 2016-10-1 19:53:24
226 3
 (This article was first published on R-exercises , and kindly contributed toR-bloggers)     One Way Analysis of Variance Exercises When we are interested in finding if there is a statistical difference in the mean of two groups we use the t test. When we have more than two groups we cannot use the t test, instead we have to use analysis of variance (ANOVA). In one way ANOVA we have one continuous dependent variable and one independent grouping variable or factor. When we have two groups the t test and one way ANOVA are equivalent.   For our one way ANOVA results to be valid there are several assumptions that need to be satisfied. These assumptions are listed below.       The dependent variable is required to be continuous    The independent variable is required to be categorical with or more categories.    The dependent and independent variables have values for each row of data.    Observations in each group are independent.    The dependent variable is approximately normally distributed in each group.    There is approximate equality of variance in all the groups.    We should not have any outliers     When our data shows non-normality, unequal variance or presence of outliers you can transform your data or use a non-parametric test like Kruskal-Wallis. It is good to note Kruskal-Wallis does not require normality of data but still requires equal variance in your groups.    For this exercise we will use data on patients having stomach, colon, ovary, brochus, or breast cancer. The objective of the study was to identify if the number of days a patient survived was influenced by the organ affected. Our dependent variable is Survival measured in days. Our independent variable is Organ. The data is available here http://lib.stat.cmu.edu/DASL/Datafiles/CancerSurvival.html and a cancer-survival file has been uploaded    Solutions to these exercises can be found here   Exercise 1   Load the data into R   Exercise 2   Create summary statistics for each organ   Exercise 3   Check if we have any outliers using boxplot   Exercise 4   Check for normality using Shapiro.wilk test   Exercise 5   Check for equality of variance   Exercise 6   Transform your data and check for normality and equality of variance.   Exercise 7   Run one way ANOVA test   Exercise 8   Perform a Tukey HSD post hoc test   Exercise 9   Interpret results   Exercise 10   Use a Kruskal-Wallis test

lzx0899 投递于 2016-10-13 20:07:48
 楼上的说的很多！

njhtjxx 投递于 2016-10-27 06:27:19
 人又不聪明，还学人家秃顶！！

╰素颜乜倾城° 投递于 2016-11-2 16:37:17
 别拿你的木马，挑战我的密码。

• ## 暴击！93年的孙怡素颜像董子健妈！不保养后

微信号 aq8050 董子 [...]

• ## 拆了那些格子间，梦想加想让你单纯的“享受

题图：梦想加望京店 “你见过10年前的豪车 [...]

• ## HashMap 和 HashTable 到底哪不同 ？

HashMap和HashTable有什么不同？在面试和被面试 [...]

• ## 他是时尚界最性感的设计师，女人们都爱他的

微信号 scp288 如果 [...]

• ## 共享汽车的虚火正在蔓延，真正盈利的没有几

2017年5月的一天，上海的王晓意外发现距离 [...]

• ## 关系型数据库设计小结

前段时间因为项目需要搭建一个web服务器，后端We [...]

• ## 瞄准近千亿农业植保市场，弧光航空欲用大载

随着中国土地流转率的提升、农村年龄结构老化 [...]

• ## 脸书审查恐袭工作被曝外包给菲律宾 时薪仅1

据英国周日邮报报道，脸书雇佣数百名年轻菲律宾 [...]

• ## 外媒评乐视美国裁员：希望私下承认失误，而

腾讯科技讯 据外媒报道，过去几个月，乐视美 [...]

• ## 微信公众号的风口过了吗？

在一份最新报告中显示， 目前微信公众号的 [...]