摘要: Fisher's exact test[1][2][3] is a statistical significance test used in the analysis ofcontingency tables. Although in practice it is employed when sample sizes are small, it is valid for all sample s... 阅读全文
posted @ 2013-11-24 22:02 joey周琦 阅读(24456) 评论(0) 推荐(0) 编辑
摘要: 画箱图的函数: boxplot()##help(boxplot)查询具体用法 图例的解释: 如下图,是两个简单的箱图。 中间的箱子的上下边,分别是第三,一个四分位数。 中间的黑线是第二四分位数(中位数)。 设r是变量的四分位距,箱图上方的小横线是小于或等于第三个四分位数+1.5*r的最大观测值。同时下方的小横线是,大于等于第一个四分位数减去1.5*r的最大的观测值。... 阅读全文
posted @ 2013-11-22 15:29 joey周琦 阅读(5308) 评论(0) 推荐(0) 编辑
摘要: save AOA.mat dingjiao RMSE%保存变量dingjiao,RMSE于AOA.matclear all;%当删除所有数据之后load AOA.mat%还可以读出这两个变量的数据 阅读全文
posted @ 2013-11-18 09:59 joey周琦 阅读(853) 评论(0) 推荐(0) 编辑
摘要: 使用函数error('message_id', 'message'),出现错误时函数中止运行。参考http://www.ilovematlab.cn/thread-43261-1-1.html 阅读全文
posted @ 2013-11-17 20:39 joey周琦 阅读(1135) 评论(0) 推荐(0) 编辑
摘要: set(gca,'FontSize',16) %%设置横纵坐标字体的大小 阅读全文
posted @ 2013-11-17 20:37 joey周琦 阅读(1425) 评论(0) 推荐(0) 编辑
摘要: getAnywhere该函数可以返回一些函数的R源代码,如: getAnywhere(kmeans)该函数具体用法,请参看官方说明。Retrieve an R Object, Including from a NamespaceDescriptionThese functions locate all objects with name matching their argument, whether visible on the search path, registered as an S3 method or in a namespace but not exported. getAn. 阅读全文
posted @ 2013-11-11 22:13 joey周琦 阅读(1389) 评论(0) 推荐(0) 编辑
摘要: 本文参考数据挖掘与R第二章节 读入数据 方法1,下载Data mining with r的配套包 install.packages('DMwR') 方法2,下载txt数据,并且读入数据。方法见上文。 ... 阅读全文
posted @ 2013-11-11 21:10 joey周琦 阅读(1061) 评论(0) 推荐(0) 编辑
摘要: 1 从该链接中下载测试数据,http://pan.baidu.com/share/link?shareid=3322971616&uk=3862050759 2 把测试文件Analysis.txt拷贝到R默认的目录下,,目录可在chang dir下选择 3 在R环境中输入程序 algae <- read.table('Analysis.txt', head... 阅读全文
posted @ 2013-11-11 20:26 joey周琦 阅读(1513) 评论(0) 推荐(0) 编辑
摘要: R列表时以其他对象为成分的有序集合,列表的成分和向量不同,它们不一定是同一种数据类型,模式或者长度。例:> my.list my.list $stud.id [1] 34453$stud.name [1] "joey"$stud.mark [1] 14.3 12.0 15.0 19.0 不同的索引方式> my.list[1] $stud.id [1] 34453> my.list[[1]] [1] 34453> my.list$stud.name#利用$符号取某列 [1]... 阅读全文
posted @ 2013-11-10 15:36 joey周琦 阅读(465) 评论(0) 推荐(0) 编辑
摘要: 元素可以保存在多个维度的对象中,数组存储的是多维数据元素,矩阵的是数组的特殊情况,它具有两维。创建数组的几种方法。1.> m dim(m) m [,1] [,2] [,3] [,4] [,5] [1,] 45 66 33 56 78 [2,] 23 77 44 12 23 2.> m m [,1] [,2] [,3] [,4] [,5] [1,] 45 66 33 56 78 [2,] 23 77 44 12 23 3.观察上面的结果,... 阅读全文
posted @ 2013-11-10 15:16 joey周琦 阅读(1163) 评论(0) 推荐(0) 编辑