Internal function for testing proportion
This function is wrapped by prop.test()
, which most users should use instead.
prop_test( x, n, p = NULL, alternative = c("two.sided", "less", "greater"), conf.level = 0.95, ... )
x |
a vector, count, or formula. |
n |
a vector of counts of trials (not needed when |
p |
a vector of probabilities of success (for the null hypothesis).
The length must be the same as the number of groups specified by |
alternative |
a character string specifying the alternative
hypothesis, must be one of |
conf.level |
confidence level of the returned confidence interval. Must be a single number between 0 and 1. Only used when testing the null that a single proportion equals a given value, or that two proportions are equal; ignored otherwise. |
... |
additional arguments passed to methods. |
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.