vectorized_prop_test: Perform vectorized hypothesis tests for the difference of two...

View source: R/vectorized-prop-test.R

vectorized_prop_testR Documentation

Perform vectorized hypothesis tests for the difference of two proportions

Description

Given vectors a, b, c and d, return a vector of p-values that test whether a / (a + b) is the same proportion as c / (c + d). This is used in the simulations of p-value behavior.

Usage

vectorized_prop_test(x1, n1, x2, n2, conf.level = 0.95)

Arguments

a

Number of successes in first condition

b

Number of failures in first condition

c

Number of successes in second condition

d

Number of failures in second condition


dgrtwo/splittestr documentation built on May 15, 2022, 3:16 p.m.