chi3scen2: Pearson's index for three-way contingency tables under...

Description Usage Arguments Value Note Author(s) References Examples

View source: R/chi3scen2.R

Description

It provides the Pearson's index, e.g. chi-square index, partitioning under the Scenario 2 when probabilities are set equal to the observed margin frequencies

Usage

1
chi3scen2(X, digits = 3)

Arguments

X

The three-way contingency table.

digits

The minimum number of decimal places, digits, used for displaying the numerical summaries of the analysis. By default, digits = 3.

Value

z

The chi-square index partition under Scenario 2, we get five terms of the chi-square partition, three bivariate terms and a trivariate one. The output is in a matrix, the four rows of this matrix indicate the index, the percentage of the explained inertia, the degree of freedom, the p-value, respectively.

Note

This function belongs to the class chi3class.

Author(s)

Lombardo R, Takane Y and Beh EJ

References

Beh EJ and Lombardo R (2014) Correspondence Analysis: Theory, Practice and New Strategies. John Wiley & Sons. Carlier A Kroonenberg PM (1996) Biplots and decompositions in two-way and three-way correspondence analysis. Psychometrika, 61, 355-373.
Lancaster H O (1951) Complex contingency tables treated by the partition of the chi-square. Journal of Royal Statistical Society, Series B, 13, 242-249.
Loisel S and Takane Y (2016) Partitions of Pearson's chi-square ststistic for frequency tables: A comprehensive account. Computational Statistics, 31, 1429-1452.

Examples

1
2
3
##---- Should be DIRECTLY executable !! ----
data(olive)
chi3scen2(olive)

Example output

Loading required package: tools
$z
               X2IJ   X2IK  X2JK  X2IJK      X2
Index        31.083 12.191 0.304  6.969  50.547
% of Inertia 61.493 24.119 0.601 13.787 100.000
df           10.000  5.000 2.000 10.000  27.000
p-value       0.001  0.032 0.859  0.728   0.004

chi2x3way documentation built on May 2, 2019, 4:16 a.m.