Skip to contents

binomtest calculates performas an exact binomial test and graphs the binomial distribution and/or binomial confidence interval.

Usage

binomtest(observed, n, hypothesized = NULL, alternative, conf.level = NULL)

Arguments

observed

The observed number of successes or sample proportion (assumed to be proportion if value less than one.)

n

number of trials.

hypothesized

hypothesized probability of success.

alternative

"less", "greater", or "two.sided"

conf.level

Confidence level for a two-sided confidence interval.

Value

P-value along with a plot of the binomial distribution and/or binomial confidence interval.