生物统计10.pptVIP

  1. 1、有哪些信誉好的足球投注网站(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。。
  2. 2、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载
  3. 3、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
  4. 4、该文档为VIP文档,如果想要下载,成为VIP会员后,下载免费。
  5. 5、成为VIP后,下载本文档将扣除1次下载权益。下载后,不支持退款、换文档。如有疑问请联系我们
  6. 6、成为VIP后,您将拥有八大权益,权益包括:VIP文档下载权益、阅读免打扰、文档格式转换、高级专利检索、专属身份标志、高级客服、多端互通、版权登记。
  7. 7、VIP文档为合作方或网友上传,每下载1次, 网站将根据用户上传文档的质量评分、类型等,对文档贡献者给予高额补贴、流量扶持。如果你也想贡献VIP文档。上传文档
查看更多
生物统计学 2009年度 计算生物所 方差分析(下) 5月22日 How to assign vectors controlA=c(0.22, -0.87, -2.39, -1.79, 0.37, -1.54, 1.28, -0.31, -0.74, 1.72, 0.38, -0.17, -0.62, -1.10, 0.30, 0.15, 2.30, 0.19, -0.50, -0.09) treatmentA=c(-5.13, -2.19, -2.43, -3.83, 0.50, -3.25, 4.32, 1.63, 5.18, -0.43, 7.11, 4.87, -3.10, -5.81, 3.76, 6.31, 2.58, 0.07, 5.76, 3.50) Now, controlA and treatmentA are two numeric data vectors. x=1:10 x=seq(1,10,by=0.5) x=rep(1:10,2) x=rep(1:10,each=2) x=as.character(c(ABC,DEF)) x=as.factor(c(rep(treatment,5),rep(control,5))) How to read and write in R To read in a data file: iris=read.table(~/Desktop/bio-statistics/iris_data.txt,header=T,sep=\t) ~/Desktop/bio-statistics/iris_data.txt” is the file name under the directory: ~/Desktop/bio-statistics/ header=T means the file has a header sep=“\t” means the data separator is the tab “\t” To write data to a file: write.table(iris, ~/Desktop/bio-statistics/iris_data_test.txt,col.names=T,row.names=F,quote=F,sep=\t) Iris data is written to file ~/Desktop/bio-statistics/iris_data_test.txt” while keeping the header without the row.names, without the quotation marks, and with tab “\t” as the separator. 多因子方差分析 多因子方差分析 多因子方差分析 系统分组随机区组试验 多因子方差分析 多因子方差分析 多因子方差分析 多因子方差分析 多因子方差分析 多因子方差分析 作业 课本208-209页,4,6,7。 * 交叉分组随机区组试验 例7.3 a=c(8,7,6,9,7,8,7,8,10) b=c(8,7,5,9,9,7,7,7,9) c=c(8,6,6,8,6,6,6,8,9) x=c(a, b, c) A=as.factor(rep(rep(1:3,each=3),3)) B=as.factor(rep(rep(1:3,3),3)) C=as.factor(rep(1:3,each=9)) #TR=as.factor(rep(1:9,3)) summary(aov(x~A*B+C)) 例7.3 summary(aov(x~A*B+C)) Df Sum Sq Mean Sq F value Pr(F) A 2 6.2222 3.1111 6.4000 0.0090744 ** B 2 1.5556 0.7778 1.6000 0.2325680 C 2 2.8889 1.4444 2.9714 0.0799125 . A:B 4 22.2222 5.5556 11.4286 0.0001414 *** Residuals 16 7.7778 0.4861 --- Signif. codes: 0 ‘***’ 0.001 ‘**’ 0.01 ‘*’ 0.05 ‘.’ 0.1 ‘ ’ 1 多因子方差分析 例7.4 x11=c(2.5, 3.5, 3.0) x12=c(5.0, 4.5, 3.5) x13=c(5.5, 5.5, 5.0)

文档评论(0)

文档精品 + 关注
实名认证
文档贡献者

该用户很懒,什么也没介绍

版权声明书
用户编号:6203200221000001

1亿VIP精品文档

相关文档