zobs2: The test statistic Z_obs for two sample proportions

Description Usage Arguments Value

View source: R/Proportions.R

Description

Method 7.18
Used for two sample proportions hypothesis test
Use prop.test(x = c(x1, x2), n = c(n1,n2), p = c(p1,p2), correct = FALSE, conf.level = 1-alpha) to get p-value

Usage

1
zobs2(x, p, n)

Arguments

x

Vector of two numbers of observations in a category

n

Vector of two number of observations in total

p0

Vector of two number of the null hypothesis

Value

Z_obs test statistic for two sample proportions hypothesis test


DanielEverland/smartstats documentation built on Dec. 17, 2021, 4:03 p.m.