chi2testtable: (Contingency) Tables for Chi-square Tests

Description Usage Arguments Value References

View source: R/testing.R

Description

(Contingency) tables for Pearson's Chi-square goodness-of-fit and independence tests.

Usage

1
chi2testtable(x, alpha, cf = FALSE)

Arguments

x

vector with normalized data between 0 and 1.

alpha

significance level.

cf

flag, if TRUE, bin counts for a multi-variate contingency table are applied (Bagnato et al., 2012). Otherwise rules for univariate tables are used (Cochran, 1952; Mann and Wald, 1942).

Value

Object with observed counts co of data x inside bins defined by edges be.

References

Cochran, W.G., The Chi Square Test of Goodness of Fit. The Annals of Mathematical Statistics, 1952. 23(3): p. 315-345.

Mann, H.B. and A. Wald, On the Choice of the Number of Class Intervals in the Application of the Chi Square Test. The Annals of Mathematical Statistics, 1942. 13(3): p. 306-317.

Bagnato, L., A. Punzo, and O. Nicolis, The autodependogram: a graphical device to investigate serial dependences. Journal of Time Series Analysis, 2012. 33(2): p. 233-254.


detpack documentation built on July 24, 2019, 5:03 p.m.