技术控

    今日:135| 主题:49488
收藏本版 (1)
最新软件应用技术尽在掌握

[其他] One Way Analysis of Variance Exercises

[复制链接]
lzxohgzxf 发表于 2016-10-1 19:53:24
167 3

立即注册CoLaBug.com会员,免费获得投稿人的专业资料,享用更多功能,玩转个人品牌!

您需要 登录 才可以下载或查看,没有帐号?立即注册

x
(This article was first published on R-exercises , and kindly contributed toR-bloggers)
   
One Way Analysis of Variance Exercises-1 (interested,equivalent,continuous,difference,published)
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
友荐云推荐




上一篇:Let's Encrypt's Growth to 10 Million Active Unique FQDNs
下一篇:基于Caffe的Large Margin Softmax Loss的实现(上)
酷辣虫提示酷辣虫禁止发表任何与中华人民共和国法律有抵触的内容!所有内容由用户发布,并不代表酷辣虫的观点,酷辣虫无法对用户发布内容真实性提供任何的保证,请自行验证并承担风险与后果。如您有版权、违规等问题,请通过"联系我们"或"违规举报"告知我们处理。

lzx0899 发表于 2016-10-13 20:07:48
楼上的说的很多!
回复 支持 反对

使用道具 举报

njhtjxx 发表于 2016-10-27 06:27:19
人又不聪明,还学人家秃顶!!
回复 支持 反对

使用道具 举报

╰素颜乜倾城° 发表于 2016-11-2 16:37:17
别拿你的木马,挑战我的密码。
回复 支持 反对

使用道具 举报

*滑动验证:
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

我要投稿

推荐阅读

扫码访问 @iTTTTT瑞翔 的微博
回页顶回复上一篇下一篇回列表手机版
手机版/CoLaBug.com ( 粤ICP备05003221号 | 文网文[2010]257号 )|网站地图 酷辣虫

© 2001-2016 Comsenz Inc. Design: Dean. DiscuzFans.

返回顶部 返回列表