1 개요[ | ]
- R언어 binom.test()
- 이항검정을 수행하고 결과를 알려주는 R언어 함수
2 양측 검정[ | ]
R
CPU
0.3s
MEM
53M
0.3s
Copy
binom.test(27,50,.50)
Exact binomial test data: 27 and 50 number of successes = 27, number of trials = 50, p-value = 0.6718 alternative hypothesis: true probability of success is not equal to 0.5 95 percent confidence interval: 0.3932420 0.6818508 sample estimates: probability of success 0.54
- → 50회 시행 중 27회 나타남
- → 대립가설: 실제 확률은 0.5가 아니다. (양측 검정)
- → P값: 0.6718
- → 95퍼센트 유의구간: 0.3932420 ~ 0.6818508
3 단측 검정[ | ]
R
Copy
binom.test(27,50,.50,alternative="greater")
Loading
- → 50회 시행 중 27회 나타남
- → 대립가설: 실제 확률은 0.5보다 크다. (단측 검정)
- → P값: 0.3359
- → 95퍼센트 유의구간: 0.4147572 ~ 1.0000000
4 P값만 추출[ | ]
R
Copy
binom.test(27,50,.50,alternative="greater")$p.value
Loading
5 같이 보기[ | ]
편집자 Jmnote 218.234.184.218 Jmnote bot
로그인하시면 댓글을 쓸 수 있습니다.