print.chi2x3way: Printing function of the results of the three-way index...

Description Usage Arguments Value Author(s) References Examples

View source: R/print.chi2x3way.R

Description

This function prints the results of the three-way index partition.
The input parameter is the name of the output of the main function Chi2for3way.

Usage

1
2
## S3 method for class 'chi2x3way'
print(x, digits = 3, ...) 

Arguments

x

The name of the output object, for example say res, used with the main function Chi2for3way.

digits

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

...

Further arguments passed to or from other methods.

Value

The value of output returned depends on the kind of three-way-index and scenario considered itemXThe three-way contingency table.

indexparts

The three-way index partition indexparts. When indextype = "chi2" this output gives the chi-squared partition while indextype = "tauM" returns the partition of Marcotorchino's index, of its numerator and its related $C_M$-statistics. Further, it also returns the percentage of explained inertia, the degrees of freedom and the p-value of each term of the partition.

simulaout

When the input parameter simulation = TRUE, the output object simulaout includes the randomly generated three-way tables and their hypothesized probabilities pi, pj, pk. The output also includes the observed marginal frequencies margI, margJ and margK and the index partition of $C_M$, $X^2$ and $C^S_M$ for each of the nboot tables.

Further, the output also gives the mean of the theoretical and observed distributions of the classical and revised $C_M$-statistics, the variance of the theoretical and observed distributions of the classical and revised $C_M$-statistics. When simulation = FALSE, then simulaout = NULL.

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.
Lombardo R Carlier A D'Ambra L (1996) Nonsymmetric correspondence analysis for three-way contingency tables. Methodologica, 4, 59-80.

Examples

1
2
3
data(olive)
resolive<-chi2x3way(olive,scen=2,simulation=FALSE) 
print.chi2x3way(resolive)

Example output

Loading required package: tools
Results to print

    Data Matrix:
, , urban

  NW NE SW
A 20 18 12
B 15 17  9
C 12 18 23
D 17 18 21
E 16  6 19
F 28 25 30

, , rural

  NW NE SW
A 30 23 11
B 22 18  9
C 21 20 26
D 17 18 19
E  8 10 17
F 12 15 24


    Chi2 partition under Scenario 2
               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.