"Binom.test()"의 두 판 사이의 차이

잔글 (봇: 자동으로 텍스트 교체 (-source +syntaxhighlight))
 
34번째 줄: 34번째 줄:
* less
* less
<syntaxhighlight lang='r'>
<syntaxhighlight lang='r'>
> binom.test(27, 50, .65, alternative="less")$p.value
binom.test(27, 50, .65, alternative="less")$p.value
[1] 0.07096126
## [1] 0.07096126
</syntaxhighlight>
</syntaxhighlight>
* greater
* greater
<syntaxhighlight lang='r'>
<syntaxhighlight lang='r'>
> binom.test(27, 50, .65, alternative="greater")$p.value
binom.test(27, 50, .65, alternative="greater")$p.value
[1] 0.9603589
## [1] 0.9603589
</syntaxhighlight>
</syntaxhighlight>
* two-sided
* two-sided
<syntaxhighlight lang='r'>
<syntaxhighlight lang='r'>
> binom.test(27, 50, .65)$p.value
binom.test(27, 50, .65)$p.value
[1] 0.1051942
## [1] 0.1051942
> binom.test(27, 50, .65, alternative="two.sided")$p.value
binom.test(27, 50, .65, alternative="two.sided")$p.value
[1] 0.1051942
## [1] 0.1051942
</syntaxhighlight>
</syntaxhighlight>


==같이 보기==
==같이 보기==
* [[이항검정]]
* [[이항검정]]

2021년 3월 11일 (목) 22:37 기준 최신판

binom.test()

1 Excel[ | ]

  • less
=BINOM.DIST(27, 50, 0.65, TRUE)
// 0.070961261
  • greater
=BINOM.DIST(50-27, 50, 1-0.65, TRUE)
// 0.96035885

2 PHP[ | ]

  • less
var_dump( stats_cdf_binomial(27, 50, 0.65, 1) );
# float(0.070961261354415)
  • greater
var_dump( stats_cdf_binomial(50-27, 50, 1-0.65, 1) );
# float(0.96035885036097)

3 R[ | ]

  • less
binom.test(27, 50, .65, alternative="less")$p.value
## [1] 0.07096126
  • greater
binom.test(27, 50, .65, alternative="greater")$p.value
## [1] 0.9603589
  • two-sided
binom.test(27, 50, .65)$p.value
## [1] 0.1051942
binom.test(27, 50, .65, alternative="two.sided")$p.value
## [1] 0.1051942

4 같이 보기[ | ]

문서 댓글 ({{ doc_comments.length }})
{{ comment.name }} {{ comment.created | snstime }}