powered by
Test whether the proportion of successes on a two-level categorical dependent variable significantly differs from a hypothesized value.
infer_binom_calc(n, success, prob = 0.5, ...)infer_binom_test(data, variable, prob = 0.5)
infer_binom_test(data, variable, prob = 0.5)
number of observations
number of successes
assumed probability of success on a trial
additional arguments passed to or from other methods
a data.frame or a tibble
data.frame
tibble
factor; column in data
data
infer_binom_test returns an object of class "infer_binom_test". An object of class "infer_binom_test" is a list containing the following components:
infer_binom_test
"infer_binom_test"
expected number of successes
expected probability of success
assumed probability of success
lower one sided p value
upper one sided p value
binom_calc() and binom_test() have been deprecated. Instead use infer_binom_cal() and infer_binom_test().
binom_calc()
binom_test()
infer_binom_cal()
infer_binom_test()
Hoel, P. G. 1984. Introduction to Mathematical Statistics. 5th ed. New York: Wiley.
binom.test
# NOT RUN { # using calculator infer_binom_calc(32, 13, prob = 0.5) # using data set infer_binom_test(hsb, female, prob = 0.5) # }
Run the code above in your browser using DataLab