binom {ANSM5}R Documentation

Perform Binomial test

Description

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)

Usage

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
)

Arguments

r

Number of successes

n

Number of trials

H0

Null hypothesis value (defaults to NULL)

alternative

Type of alternative hypothesis (defaults to two.sided)

CI.width

Confidence interval width (defaults to 0.95)

max.exact.cases

Maximum number of cases allowed for exact calculations (defaults to 10000000)

do.asymp

Boolean indicating whether or not to perform asymptotic calculations (defaults to FALSE)

do.exact

Boolean indicating whether or not to perform exact calculations (defaults to TRUE)

do.CI

Boolean indicating whether or not to perform confidence interval calculations (defaults to TRUE)

Value

An ANSMtest object with the results from applying the function

Examples

# 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)


[Package ANSM5 version 1.1.0 Index]