View source: R/ifr-binom-test.R
ifr_binom_calc | R Documentation |
Test whether the proportion of successes on a two-level categorical dependent variable significantly differs from a hypothesized value.
ifr_binom_calc(n, success, prob = 0.5, ...)
ifr_binom_test(data, variable, prob = 0.5)
n |
number of observations |
success |
number of successes |
prob |
assumed probability of success on a trial |
... |
additional arguments passed to or from other methods |
data |
a |
variable |
factor; column in |
ifr_binom_test
returns an object of class "ifr_binom_test"
.
An object of class "ifr_binom_test"
is a list containing the
following components:
exp_k |
expected number of successes |
exp_p |
expected probability of success |
k |
number of successes |
n |
number of observations |
obs_p |
assumed probability of success |
pval_lower |
lower one sided p value |
pval_upper |
upper one sided p value |
infer_binom_calc()
and infer_binom_test()
have been deprecated. Instead use
ifr_binom_cal()
and ifr_binom_test()
.
Hoel, P. G. 1984. Introduction to Mathematical Statistics. 5th ed. New York: Wiley.
binom.test
# using calculator
ifr_binom_calc(32, 13, prob = 0.5)
# using data set
ifr_binom_test(hsb, female, prob = 0.5)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.