calc_chi2: Vectorized computation of chi^2 statistic for a 2x2 crosstab...

Description Usage Arguments

View source: R/est_validity.r

Description

Vectorized computation of chi^2 statistic for a 2x2 crosstab containing the values [a, b] [c, d]

Usage

1
calc_chi2(a, b, c, d, correct = T)

Arguments

a

topleft value of the table

b

topright value

c

bottomleft value

d

bottomright value

correct

if TRUE, use yates correction. Can be a vector of length a (i.e. the number of tables)


kasperwelbers/restecode documentation built on Feb. 12, 2020, 11:39 a.m.