Computes the test for proportions for two given binary variables.
internal.prop2.test(
x,
y,
p = NULL,
alternative = c("two.sided", "less", "greater"),
conf.level = 0.95,
correct = TRUE,
na.rm = TRUE
)A data frame with test results.
First binary variable.
Second binary variable.
Null hypothesis value for proportion. Default is NULL.
A character string specifying the alternative hypothesis. One of "two.sided", "less", or "greater". Default is "two.sided".
A numeric value between 0 and 1 indicating the confidence level for the interval estimate of the proportion. Default is 0.95.
A logical indicating if Yates' continuity correction should be applied for the test. Default is TRUE.
A logical indicating if NA values should be removed. Default is TRUE.