powered by
binom() performs the Binomial test and calculates the Binomial confidence interval and is used in chapters 4, 5 and 13 of "Applied Nonparametric Statistical Methods" (5th edition)
binom()
binom( r, n, H0 = NULL, alternative = c("two.sided", "less", "greater"), CI.width = 0.95, max.exact.cases = 1e+07, do.asymp = FALSE, do.exact = TRUE, do.CI = TRUE )
An ANSMtest object with the results from applying the function
Number of successes
Number of trials
Null hypothesis value (defaults to NULL)
NULL
Type of alternative hypothesis (defaults to two.sided)
two.sided
Confidence interval width (defaults to 0.95)
0.95
Maximum number of cases allowed for exact calculations (defaults to 10000000)
10000000
Boolean indicating whether or not to perform asymptotic calculations (defaults to FALSE)
FALSE
Boolean indicating whether or not to perform exact calculations (defaults to TRUE)
TRUE
Boolean indicating whether or not to perform confidence interval calculations (defaults to TRUE)
# Example 4.6 from "Applied Nonparametric Statistical Methods" (5th edition) binom(3, 20) # Exercise 5.8 from "Applied Nonparametric Statistical Methods" (5th edition) binom(24, 40, 0.5)
Run the code above in your browser using DataLab