proportion.test.twosample.approximate.simple: Two Sample Proportion Test (Approximate)

View source: R/proportion.test.twosample.approximate.simple.R

proportion.test.twosample.approximate.simpleR Documentation

Two Sample Proportion Test (Approximate)

Description

Calculates a two-sample proportion test to determine if a samples come from different populations. Z test is used for test computation.

Usage

proportion.test.twosample.approximate.simple(
  sample.proportion.g1,
  sample.size.g1,
  sample.proportion.g2,
  sample.size.g2,
  alternative = c("two.sided", "less", "greater"),
  conf.level = 0.95,
  continuity.correction = T
)

Arguments

sample.proportion.g1

Scalar/numeric - Group 1 - sample proportion between 0 and 1

sample.size.g1

Scalar/numeric - Group 1 - sample size.

sample.proportion.g2

Scalar/numeric - Group 2 - sample proportion between 0 and 1

sample.size.g2

Scalar/numeric - Group 2 - sample size.

alternative

The alternative hypothesis to use for the test computation.

conf.level

The confidence level for this test, between 0 and 1.

continuity.correction

Scalar/logical - if TRUE, use continuity correction for the test.

Value

Hypothesis test result showing results of test.


burrm/lolcat documentation built on Sept. 15, 2023, 11:35 a.m.