全部版块 我的主页
论坛 数据科学与人工智能 数据分析与数据科学 R语言论坛
3489 1
2009-08-21
请问有高手知道在R中对于如二项分布这样的分布怎样做ks检验吗?几经测试,用ks.test函数做出来的结果是错误的,怎样正确做ks检验啊?难道R的ks检验遇到二项分布就没辙了吗?
二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

全部回复
2015-1-26 16:06:03
R语言里面的ks.test说明是这样的——
If y is numeric, a two-sample test of the null hypothesis that x and y were drawn from the same continuous distribution is performed.
所以,看到continuous distribution,基本上就把二项分布枪毙了


如果要检验二项分布,用binom.test()
binom.test(x, n, p = 0.5,alternative = c("two.sided", "less", "greater"),conf.level = 0.95)


二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

相关推荐
栏目导航
热门文章
推荐文章

说点什么

分享

扫码加好友,拉您进群
各岗位、行业、专业交流群