***~会飞的蝎子~学习宁静致远 » 日志 » Exact Binomial test Using R
Exact Binomial test Using R
蝎子 发表于 2008-02-23 07:41:05
This is a very simple code(2-sided):
> binom.test(1,15,p=0.4,alternative=c("two.sided","less","greater"),conf.level=0.95)
The output:
Exact binomial test
data: 1 and 15
number of successes = 1, number of trials = 15, p-value = 0.0071
alternative hypothesis: true probability of success is not equal to 0.4
95 percent confidence interval:
0.001686430 0.319484567
sample estimates:
probability of success
0.06666667
remark:
This is a very simple homework problem.
> binom.test(1,15,p=0.4,alternative=c("two.sided","less","greater"),conf.level=0.95)
The output:
Exact binomial test
data: 1 and 15
number of successes = 1, number of trials = 15, p-value = 0.0071
alternative hypothesis: true probability of success is not equal to 0.4
95 percent confidence interval:
0.001686430 0.319484567
sample estimates:
probability of success
0.06666667
remark:
This is a very simple homework problem.
曾经的这一天...
- » 2007年: 비=rain
- » 2006年: english words today
相关日志:
收藏:
QQ书签
del.icio.us
订阅:
Google
抓虾
