z_2prop_pooled: Two-proportion z-test (pooled) for non-zero null

View source: R/z_2prop_pooled.R

z_2prop_pooledR Documentation

Two-proportion z-test (pooled) for non-zero null

Description

Two-proportion z-test (pooled) for non-zero null.

Usage

z_2prop_pooled(
  x1,
  x2,
  n1,
  n2,
  delta = 0,
  alternative = c("two.sided", "less", "greater"),
  correct = TRUE
)

Arguments

x1

number of successes in group 1.

x2

number of successes in group 2.

n1

total number of games in group 1.

n2

total number of games in group 2.

delta

null hypothesis of the difference in proportion.

alternative

a character string specifying the alternative hypothesis, must be one of "two.sided" (default), "greater" or "less". You can specify just the initial letter. Only used for testing the null that a single proportion equals a given value, or that two proportions are equal; ignored otherwise.

correct

a logical indicating whether continuity correction should be applied where possible.

Value

a number of p-value.


jdreyf/jdcbioinfo documentation built on May 1, 2024, 4:36 a.m.