- var1
a (non-empty) vector of binary numeric (0-1), binary factor, or logical
data values
- var2
an optional (non-empty)
vector of binary numeric (0-1), binary factor, or logical
data values
- by
a variable of equal length to
that of var1
with two outcomes (numeric or factor). This will be used to define strata
for a prop test on var1
.
- exact
If true, performs a
test of equality of proportions using exact binomial probabilities.
- null.hypoth
a number specifying the
null hypothesis for the mean (or difference in means if performing a
two-sample test). Defaults to 0.5 for a one-sample test and 0 for a two-sample test.
- alternative
a string: one of
"less"
, "two.sided"
, or "greater"
specifying the form
of the test. Defaults to a two-sided test.
- conf.level
confidence level of the
test. Defaults to 0.95.
- correct
a logical indicating whether to perform a continuity correction
- more.digits
a numeric value
specifying whether or not to display more or fewer digits in the output.
Non-integers are automatically rounded down.