Binomial Test in SAS and R - Different Results
Clash Royale CLAN TAG #URR8PPP Binomial Test in SAS and R - Different Results I need to replicate a binomial test from R to SAS but I'm obtaining different results (or maybe I am misinterpreting the SAS results). In order to explain my problem in an easy way, I will use data from this wikipedia example because it provides the final solution; Suppose you want to calculate the probability of obtaining 51 or more 6s in a sample of 235 roll of a fair die with 6 faces, so that the true probability of rolling a 6 on each trial is 1/6. The final solution should be 0.02654 . In R, the code to do is the following: binom.test(51,235,(1/6),alternative = "greater") and the obtained results are: Exact binomial test data: 51 and 235 number of successes = 51, number of trials = 235, p-value = 0.02654 alternative hypothesis: true probability of success is greater than 0.1666667 95 percent confidence interval: 0.1735253 1.0000000 sample estimates: probability of success ...