Free Statistics

of Irreproducible Research!

Author's title

Author*The author of this computation has been verified*
R Software Modulerwasp_chi_squared_tests.wasp
Title produced by softwareChi-Squared Test, McNemar Test, and Fisher Exact Test
Date of computationMon, 22 Oct 2012 17:24:50 -0400
Cite this page as followsStatistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?v=date/2012/Oct/22/t13509411101bjueiu4radqh68.htm/, Retrieved Sat, 04 May 2024 05:28:21 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=182410, Retrieved Sat, 04 May 2024 05:28:21 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact46
Family? (F = Feedback message, R = changed R code, M = changed R Module, P = changed Parameters, D = changed Data)
-       [Chi-Squared Test, McNemar Test, and Fisher Exact Test] [Happiness Sport] [2012-10-22 21:24:50] [5a8a6a708075c900e44f6218c8499cec] [Current]
Feedback Forum

Post a new message
Dataseries X:
14	53
18	86
11	66
12	67
16	76
18	78
14	53
14	80
15	74
15	76
17	79
19	54
10	67
16	54
18	87
14	58
14	75
17	88
14	64
16	57
18	66
11	68
14	54
12	56
17	86
9	80
16	76
14	69
15	78
11	67
16	80
13	54
17	71
15	84
14	74
16	71
9	63
15	71
17	76
13	69
15	74
16	75
16	54
12	52
12	69
11	68
15	65
15	75
17	74
13	75
16	72
14	67
11	63
12	62
12	63
15	76
16	74
15	67
12	73
12	70
8	53
13	77
11	77
14	52
15	54
10	80
11	66
12	73
15	63
15	69
14	67
16	54
15	81
15	69
13	84
12	80
17	70
13	69
15	77
13	54
15	79
16	30
15	71
16	73
15	72
14	77
15	75
14	69
13	54
7	70
17	73
13	54
15	77
14	82
13	80
16	80
12	69
14	78
17	81
15	76
17	76
12	73
16	85
11	66
15	79
9	68
16	76
15	71
10	54
10	46
15	82
11	74
13	88
14	38
18	76
16	86
14	54
14	70
14	69
14	90
12	54
14	76
15	89
15	76
15	73
13	79
17	90
17	74
19	81
15	72
13	71
9	66
15	77
15	65
15	74
16	82
11	54
14	63
11	54
15	64
13	69
15	54
16	84
14	86
15	77
16	89
16	76
11	60
12	75
9	73
16	85
13	79
16	71
12	72
9	69
13	78
13	54
14	69
19	81
13	84
12	84
13	69




Summary of computational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time6 seconds
R Server'Herman Ole Andreas Wold' @ wold.wessa.net

\begin{tabular}{lllllllll}
\hline
Summary of computational transaction \tabularnewline
Raw Input & view raw input (R code)  \tabularnewline
Raw Output & view raw output of R engine  \tabularnewline
Computing time & 6 seconds \tabularnewline
R Server & 'Herman Ole Andreas Wold' @ wold.wessa.net \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=182410&T=0

[TABLE]
[ROW][C]Summary of computational transaction[/C][/ROW]
[ROW][C]Raw Input[/C][C]view raw input (R code) [/C][/ROW]
[ROW][C]Raw Output[/C][C]view raw output of R engine [/C][/ROW]
[ROW][C]Computing time[/C][C]6 seconds[/C][/ROW]
[ROW][C]R Server[/C][C]'Herman Ole Andreas Wold' @ wold.wessa.net[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=182410&T=0

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=182410&T=0

As an alternative you can also use a QR Code:  

The GUIDs for individual cells are displayed in the table below:

Summary of computational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time6 seconds
R Server'Herman Ole Andreas Wold' @ wold.wessa.net







Tabulation of Results
Happiness x Sport
3038465253545657586062636465666768697071727374757677787980818284858687888990
700000000000000000010000000000000000000
800001000000000000000000000000000000000
900000000000100101100010000001000000000
1000100100000000010000000000001000000000
1100000200010100312000001001000000000000
1200010110001100010210130100001001000000
1300000500000000000401000101121002000100
1401012200100110020410001111101010010001
1500000200000112010203213244120111000010
1610000301000000000002111140002011210010
1700000000000000000011012020010100010101
1800000000000000100000000010100000011000
1900000100000000000000000000000200000000

\begin{tabular}{lllllllll}
\hline
Tabulation of Results \tabularnewline
Happiness  x  Sport \tabularnewline
  & 30 & 38 & 46 & 52 & 53 & 54 & 56 & 57 & 58 & 60 & 62 & 63 & 64 & 65 & 66 & 67 & 68 & 69 & 70 & 71 & 72 & 73 & 74 & 75 & 76 & 77 & 78 & 79 & 80 & 81 & 82 & 84 & 85 & 86 & 87 & 88 & 89 & 90 \tabularnewline
7 & 0 & 0 & 0 & 0 & 0 & 0 & 0 & 0 & 0 & 0 & 0 & 0 & 0 & 0 & 0 & 0 & 0 & 0 & 1 & 0 & 0 & 0 & 0 & 0 & 0 & 0 & 0 & 0 & 0 & 0 & 0 & 0 & 0 & 0 & 0 & 0 & 0 & 0 \tabularnewline
8 & 0 & 0 & 0 & 0 & 1 & 0 & 0 & 0 & 0 & 0 & 0 & 0 & 0 & 0 & 0 & 0 & 0 & 0 & 0 & 0 & 0 & 0 & 0 & 0 & 0 & 0 & 0 & 0 & 0 & 0 & 0 & 0 & 0 & 0 & 0 & 0 & 0 & 0 \tabularnewline
9 & 0 & 0 & 0 & 0 & 0 & 0 & 0 & 0 & 0 & 0 & 0 & 1 & 0 & 0 & 1 & 0 & 1 & 1 & 0 & 0 & 0 & 1 & 0 & 0 & 0 & 0 & 0 & 0 & 1 & 0 & 0 & 0 & 0 & 0 & 0 & 0 & 0 & 0 \tabularnewline
10 & 0 & 0 & 1 & 0 & 0 & 1 & 0 & 0 & 0 & 0 & 0 & 0 & 0 & 0 & 0 & 1 & 0 & 0 & 0 & 0 & 0 & 0 & 0 & 0 & 0 & 0 & 0 & 0 & 1 & 0 & 0 & 0 & 0 & 0 & 0 & 0 & 0 & 0 \tabularnewline
11 & 0 & 0 & 0 & 0 & 0 & 2 & 0 & 0 & 0 & 1 & 0 & 1 & 0 & 0 & 3 & 1 & 2 & 0 & 0 & 0 & 0 & 0 & 1 & 0 & 0 & 1 & 0 & 0 & 0 & 0 & 0 & 0 & 0 & 0 & 0 & 0 & 0 & 0 \tabularnewline
12 & 0 & 0 & 0 & 1 & 0 & 1 & 1 & 0 & 0 & 0 & 1 & 1 & 0 & 0 & 0 & 1 & 0 & 2 & 1 & 0 & 1 & 3 & 0 & 1 & 0 & 0 & 0 & 0 & 1 & 0 & 0 & 1 & 0 & 0 & 0 & 0 & 0 & 0 \tabularnewline
13 & 0 & 0 & 0 & 0 & 0 & 5 & 0 & 0 & 0 & 0 & 0 & 0 & 0 & 0 & 0 & 0 & 0 & 4 & 0 & 1 & 0 & 0 & 0 & 1 & 0 & 1 & 1 & 2 & 1 & 0 & 0 & 2 & 0 & 0 & 0 & 1 & 0 & 0 \tabularnewline
14 & 0 & 1 & 0 & 1 & 2 & 2 & 0 & 0 & 1 & 0 & 0 & 1 & 1 & 0 & 0 & 2 & 0 & 4 & 1 & 0 & 0 & 0 & 1 & 1 & 1 & 1 & 1 & 0 & 1 & 0 & 1 & 0 & 0 & 1 & 0 & 0 & 0 & 1 \tabularnewline
15 & 0 & 0 & 0 & 0 & 0 & 2 & 0 & 0 & 0 & 0 & 0 & 1 & 1 & 2 & 0 & 1 & 0 & 2 & 0 & 3 & 2 & 1 & 3 & 2 & 4 & 4 & 1 & 2 & 0 & 1 & 1 & 1 & 0 & 0 & 0 & 0 & 1 & 0 \tabularnewline
16 & 1 & 0 & 0 & 0 & 0 & 3 & 0 & 1 & 0 & 0 & 0 & 0 & 0 & 0 & 0 & 0 & 0 & 0 & 0 & 2 & 1 & 1 & 1 & 1 & 4 & 0 & 0 & 0 & 2 & 0 & 1 & 1 & 2 & 1 & 0 & 0 & 1 & 0 \tabularnewline
17 & 0 & 0 & 0 & 0 & 0 & 0 & 0 & 0 & 0 & 0 & 0 & 0 & 0 & 0 & 0 & 0 & 0 & 0 & 1 & 1 & 0 & 1 & 2 & 0 & 2 & 0 & 0 & 1 & 0 & 1 & 0 & 0 & 0 & 1 & 0 & 1 & 0 & 1 \tabularnewline
18 & 0 & 0 & 0 & 0 & 0 & 0 & 0 & 0 & 0 & 0 & 0 & 0 & 0 & 0 & 1 & 0 & 0 & 0 & 0 & 0 & 0 & 0 & 0 & 0 & 1 & 0 & 1 & 0 & 0 & 0 & 0 & 0 & 0 & 1 & 1 & 0 & 0 & 0 \tabularnewline
19 & 0 & 0 & 0 & 0 & 0 & 1 & 0 & 0 & 0 & 0 & 0 & 0 & 0 & 0 & 0 & 0 & 0 & 0 & 0 & 0 & 0 & 0 & 0 & 0 & 0 & 0 & 0 & 0 & 0 & 2 & 0 & 0 & 0 & 0 & 0 & 0 & 0 & 0 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=182410&T=1

[TABLE]
[ROW]Tabulation of Results[/C][/ROW]
[ROW]Happiness  x  Sport[/C][/ROW]
[ROW][C] [/C][C]30[/C][C]38[/C][C]46[/C][C]52[/C][C]53[/C][C]54[/C][C]56[/C][C]57[/C][C]58[/C][C]60[/C][C]62[/C][C]63[/C][C]64[/C][C]65[/C][C]66[/C][C]67[/C][C]68[/C][C]69[/C][C]70[/C][C]71[/C][C]72[/C][C]73[/C][C]74[/C][C]75[/C][C]76[/C][C]77[/C][C]78[/C][C]79[/C][C]80[/C][C]81[/C][C]82[/C][C]84[/C][C]85[/C][C]86[/C][C]87[/C][C]88[/C][C]89[/C][C]90[/C][/ROW]
[C]7[/C][C]0[/C][C]0[/C][C]0[/C][C]0[/C][C]0[/C][C]0[/C][C]0[/C][C]0[/C][C]0[/C][C]0[/C][C]0[/C][C]0[/C][C]0[/C][C]0[/C][C]0[/C][C]0[/C][C]0[/C][C]0[/C][C]1[/C][C]0[/C][C]0[/C][C]0[/C][C]0[/C][C]0[/C][C]0[/C][C]0[/C][C]0[/C][C]0[/C][C]0[/C][C]0[/C][C]0[/C][C]0[/C][C]0[/C][C]0[/C][C]0[/C][C]0[/C][C]0[/C][C]0[/C][/ROW]
[C]8[/C][C]0[/C][C]0[/C][C]0[/C][C]0[/C][C]1[/C][C]0[/C][C]0[/C][C]0[/C][C]0[/C][C]0[/C][C]0[/C][C]0[/C][C]0[/C][C]0[/C][C]0[/C][C]0[/C][C]0[/C][C]0[/C][C]0[/C][C]0[/C][C]0[/C][C]0[/C][C]0[/C][C]0[/C][C]0[/C][C]0[/C][C]0[/C][C]0[/C][C]0[/C][C]0[/C][C]0[/C][C]0[/C][C]0[/C][C]0[/C][C]0[/C][C]0[/C][C]0[/C][C]0[/C][/ROW]
[C]9[/C][C]0[/C][C]0[/C][C]0[/C][C]0[/C][C]0[/C][C]0[/C][C]0[/C][C]0[/C][C]0[/C][C]0[/C][C]0[/C][C]1[/C][C]0[/C][C]0[/C][C]1[/C][C]0[/C][C]1[/C][C]1[/C][C]0[/C][C]0[/C][C]0[/C][C]1[/C][C]0[/C][C]0[/C][C]0[/C][C]0[/C][C]0[/C][C]0[/C][C]1[/C][C]0[/C][C]0[/C][C]0[/C][C]0[/C][C]0[/C][C]0[/C][C]0[/C][C]0[/C][C]0[/C][/ROW]
[C]10[/C][C]0[/C][C]0[/C][C]1[/C][C]0[/C][C]0[/C][C]1[/C][C]0[/C][C]0[/C][C]0[/C][C]0[/C][C]0[/C][C]0[/C][C]0[/C][C]0[/C][C]0[/C][C]1[/C][C]0[/C][C]0[/C][C]0[/C][C]0[/C][C]0[/C][C]0[/C][C]0[/C][C]0[/C][C]0[/C][C]0[/C][C]0[/C][C]0[/C][C]1[/C][C]0[/C][C]0[/C][C]0[/C][C]0[/C][C]0[/C][C]0[/C][C]0[/C][C]0[/C][C]0[/C][/ROW]
[C]11[/C][C]0[/C][C]0[/C][C]0[/C][C]0[/C][C]0[/C][C]2[/C][C]0[/C][C]0[/C][C]0[/C][C]1[/C][C]0[/C][C]1[/C][C]0[/C][C]0[/C][C]3[/C][C]1[/C][C]2[/C][C]0[/C][C]0[/C][C]0[/C][C]0[/C][C]0[/C][C]1[/C][C]0[/C][C]0[/C][C]1[/C][C]0[/C][C]0[/C][C]0[/C][C]0[/C][C]0[/C][C]0[/C][C]0[/C][C]0[/C][C]0[/C][C]0[/C][C]0[/C][C]0[/C][/ROW]
[C]12[/C][C]0[/C][C]0[/C][C]0[/C][C]1[/C][C]0[/C][C]1[/C][C]1[/C][C]0[/C][C]0[/C][C]0[/C][C]1[/C][C]1[/C][C]0[/C][C]0[/C][C]0[/C][C]1[/C][C]0[/C][C]2[/C][C]1[/C][C]0[/C][C]1[/C][C]3[/C][C]0[/C][C]1[/C][C]0[/C][C]0[/C][C]0[/C][C]0[/C][C]1[/C][C]0[/C][C]0[/C][C]1[/C][C]0[/C][C]0[/C][C]0[/C][C]0[/C][C]0[/C][C]0[/C][/ROW]
[C]13[/C][C]0[/C][C]0[/C][C]0[/C][C]0[/C][C]0[/C][C]5[/C][C]0[/C][C]0[/C][C]0[/C][C]0[/C][C]0[/C][C]0[/C][C]0[/C][C]0[/C][C]0[/C][C]0[/C][C]0[/C][C]4[/C][C]0[/C][C]1[/C][C]0[/C][C]0[/C][C]0[/C][C]1[/C][C]0[/C][C]1[/C][C]1[/C][C]2[/C][C]1[/C][C]0[/C][C]0[/C][C]2[/C][C]0[/C][C]0[/C][C]0[/C][C]1[/C][C]0[/C][C]0[/C][/ROW]
[C]14[/C][C]0[/C][C]1[/C][C]0[/C][C]1[/C][C]2[/C][C]2[/C][C]0[/C][C]0[/C][C]1[/C][C]0[/C][C]0[/C][C]1[/C][C]1[/C][C]0[/C][C]0[/C][C]2[/C][C]0[/C][C]4[/C][C]1[/C][C]0[/C][C]0[/C][C]0[/C][C]1[/C][C]1[/C][C]1[/C][C]1[/C][C]1[/C][C]0[/C][C]1[/C][C]0[/C][C]1[/C][C]0[/C][C]0[/C][C]1[/C][C]0[/C][C]0[/C][C]0[/C][C]1[/C][/ROW]
[C]15[/C][C]0[/C][C]0[/C][C]0[/C][C]0[/C][C]0[/C][C]2[/C][C]0[/C][C]0[/C][C]0[/C][C]0[/C][C]0[/C][C]1[/C][C]1[/C][C]2[/C][C]0[/C][C]1[/C][C]0[/C][C]2[/C][C]0[/C][C]3[/C][C]2[/C][C]1[/C][C]3[/C][C]2[/C][C]4[/C][C]4[/C][C]1[/C][C]2[/C][C]0[/C][C]1[/C][C]1[/C][C]1[/C][C]0[/C][C]0[/C][C]0[/C][C]0[/C][C]1[/C][C]0[/C][/ROW]
[C]16[/C][C]1[/C][C]0[/C][C]0[/C][C]0[/C][C]0[/C][C]3[/C][C]0[/C][C]1[/C][C]0[/C][C]0[/C][C]0[/C][C]0[/C][C]0[/C][C]0[/C][C]0[/C][C]0[/C][C]0[/C][C]0[/C][C]0[/C][C]2[/C][C]1[/C][C]1[/C][C]1[/C][C]1[/C][C]4[/C][C]0[/C][C]0[/C][C]0[/C][C]2[/C][C]0[/C][C]1[/C][C]1[/C][C]2[/C][C]1[/C][C]0[/C][C]0[/C][C]1[/C][C]0[/C][/ROW]
[C]17[/C][C]0[/C][C]0[/C][C]0[/C][C]0[/C][C]0[/C][C]0[/C][C]0[/C][C]0[/C][C]0[/C][C]0[/C][C]0[/C][C]0[/C][C]0[/C][C]0[/C][C]0[/C][C]0[/C][C]0[/C][C]0[/C][C]1[/C][C]1[/C][C]0[/C][C]1[/C][C]2[/C][C]0[/C][C]2[/C][C]0[/C][C]0[/C][C]1[/C][C]0[/C][C]1[/C][C]0[/C][C]0[/C][C]0[/C][C]1[/C][C]0[/C][C]1[/C][C]0[/C][C]1[/C][/ROW]
[C]18[/C][C]0[/C][C]0[/C][C]0[/C][C]0[/C][C]0[/C][C]0[/C][C]0[/C][C]0[/C][C]0[/C][C]0[/C][C]0[/C][C]0[/C][C]0[/C][C]0[/C][C]1[/C][C]0[/C][C]0[/C][C]0[/C][C]0[/C][C]0[/C][C]0[/C][C]0[/C][C]0[/C][C]0[/C][C]1[/C][C]0[/C][C]1[/C][C]0[/C][C]0[/C][C]0[/C][C]0[/C][C]0[/C][C]0[/C][C]1[/C][C]1[/C][C]0[/C][C]0[/C][C]0[/C][/ROW]
[C]19[/C][C]0[/C][C]0[/C][C]0[/C][C]0[/C][C]0[/C][C]1[/C][C]0[/C][C]0[/C][C]0[/C][C]0[/C][C]0[/C][C]0[/C][C]0[/C][C]0[/C][C]0[/C][C]0[/C][C]0[/C][C]0[/C][C]0[/C][C]0[/C][C]0[/C][C]0[/C][C]0[/C][C]0[/C][C]0[/C][C]0[/C][C]0[/C][C]0[/C][C]0[/C][C]2[/C][C]0[/C][C]0[/C][C]0[/C][C]0[/C][C]0[/C][C]0[/C][C]0[/C][C]0[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=182410&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=182410&T=1

As an alternative you can also use a QR Code:  

The GUIDs for individual cells are displayed in the table below:

Tabulation of Results
Happiness x Sport
3038465253545657586062636465666768697071727374757677787980818284858687888990
700000000000000000010000000000000000000
800001000000000000000000000000000000000
900000000000100101100010000001000000000
1000100100000000010000000000001000000000
1100000200010100312000001001000000000000
1200010110001100010210130100001001000000
1300000500000000000401000101121002000100
1401012200100110020410001111101010010001
1500000200000112010203213244120111000010
1610000301000000000002111140002011210010
1700000000000000000011012020010100010101
1800000000000000100000000010100000011000
1900000100000000000000000000000200000000







Tabulation of Expected Results
Happiness x Sport
3038465253545657586062636465666768697071727374757677787980818284858687888990
70.010.010.010.010.020.10.010.010.010.010.010.030.010.010.030.040.020.080.020.040.020.040.050.040.070.040.020.030.040.020.020.030.010.020.010.010.010.01
80.010.010.010.010.020.10.010.010.010.010.010.030.010.010.030.040.020.080.020.040.020.040.050.040.070.040.020.030.040.020.020.030.010.020.010.010.010.01
90.040.040.040.070.110.630.040.040.040.040.040.190.070.070.190.220.110.480.150.260.150.260.30.220.440.260.150.190.260.150.110.190.070.150.040.070.070.07
100.020.020.020.050.070.420.020.020.020.020.020.120.050.050.120.150.070.320.10.170.10.170.20.150.30.170.10.120.170.10.070.120.050.10.020.050.050.05
110.070.070.070.150.221.260.070.070.070.070.070.370.150.150.370.440.220.960.30.520.30.520.590.440.890.520.30.370.520.30.220.370.150.30.070.150.150.15
120.10.10.10.20.31.680.10.10.10.10.10.490.20.20.490.590.31.280.40.690.40.690.790.591.190.690.40.490.690.40.30.490.20.40.10.20.20.2
130.120.120.120.230.351.990.120.120.120.120.120.590.230.230.590.70.351.520.470.820.470.820.940.71.410.820.470.590.820.470.350.590.230.470.120.230.230.23
140.150.150.150.310.462.620.150.150.150.150.150.770.310.310.770.930.462.010.621.080.621.081.230.931.851.080.620.771.080.620.460.770.310.620.150.310.310.31
150.220.220.220.430.653.670.220.220.220.220.221.080.430.431.081.30.652.810.861.510.861.511.731.32.591.510.861.081.510.860.651.080.430.860.220.430.430.43
160.140.140.140.280.432.410.140.140.140.140.140.710.280.280.710.850.431.850.570.990.570.991.140.851.70.990.570.710.990.570.430.710.280.570.140.280.280.28
170.070.070.070.150.221.260.070.070.070.070.070.370.150.150.370.440.220.960.30.520.30.520.590.440.890.520.30.370.520.30.220.370.150.30.070.150.150.15
180.030.030.030.060.090.520.030.030.030.030.030.150.060.060.150.190.090.40.120.220.120.220.250.190.370.220.120.150.220.120.090.150.060.120.030.060.060.06
190.020.020.020.040.060.310.020.020.020.020.020.090.040.040.090.110.060.240.070.130.070.130.150.110.220.130.070.090.130.070.060.090.040.070.020.040.040.04

\begin{tabular}{lllllllll}
\hline
Tabulation of Expected Results \tabularnewline
Happiness  x  Sport \tabularnewline
  & 30 & 38 & 46 & 52 & 53 & 54 & 56 & 57 & 58 & 60 & 62 & 63 & 64 & 65 & 66 & 67 & 68 & 69 & 70 & 71 & 72 & 73 & 74 & 75 & 76 & 77 & 78 & 79 & 80 & 81 & 82 & 84 & 85 & 86 & 87 & 88 & 89 & 90 \tabularnewline
7 & 0.01 & 0.01 & 0.01 & 0.01 & 0.02 & 0.1 & 0.01 & 0.01 & 0.01 & 0.01 & 0.01 & 0.03 & 0.01 & 0.01 & 0.03 & 0.04 & 0.02 & 0.08 & 0.02 & 0.04 & 0.02 & 0.04 & 0.05 & 0.04 & 0.07 & 0.04 & 0.02 & 0.03 & 0.04 & 0.02 & 0.02 & 0.03 & 0.01 & 0.02 & 0.01 & 0.01 & 0.01 & 0.01 \tabularnewline
8 & 0.01 & 0.01 & 0.01 & 0.01 & 0.02 & 0.1 & 0.01 & 0.01 & 0.01 & 0.01 & 0.01 & 0.03 & 0.01 & 0.01 & 0.03 & 0.04 & 0.02 & 0.08 & 0.02 & 0.04 & 0.02 & 0.04 & 0.05 & 0.04 & 0.07 & 0.04 & 0.02 & 0.03 & 0.04 & 0.02 & 0.02 & 0.03 & 0.01 & 0.02 & 0.01 & 0.01 & 0.01 & 0.01 \tabularnewline
9 & 0.04 & 0.04 & 0.04 & 0.07 & 0.11 & 0.63 & 0.04 & 0.04 & 0.04 & 0.04 & 0.04 & 0.19 & 0.07 & 0.07 & 0.19 & 0.22 & 0.11 & 0.48 & 0.15 & 0.26 & 0.15 & 0.26 & 0.3 & 0.22 & 0.44 & 0.26 & 0.15 & 0.19 & 0.26 & 0.15 & 0.11 & 0.19 & 0.07 & 0.15 & 0.04 & 0.07 & 0.07 & 0.07 \tabularnewline
10 & 0.02 & 0.02 & 0.02 & 0.05 & 0.07 & 0.42 & 0.02 & 0.02 & 0.02 & 0.02 & 0.02 & 0.12 & 0.05 & 0.05 & 0.12 & 0.15 & 0.07 & 0.32 & 0.1 & 0.17 & 0.1 & 0.17 & 0.2 & 0.15 & 0.3 & 0.17 & 0.1 & 0.12 & 0.17 & 0.1 & 0.07 & 0.12 & 0.05 & 0.1 & 0.02 & 0.05 & 0.05 & 0.05 \tabularnewline
11 & 0.07 & 0.07 & 0.07 & 0.15 & 0.22 & 1.26 & 0.07 & 0.07 & 0.07 & 0.07 & 0.07 & 0.37 & 0.15 & 0.15 & 0.37 & 0.44 & 0.22 & 0.96 & 0.3 & 0.52 & 0.3 & 0.52 & 0.59 & 0.44 & 0.89 & 0.52 & 0.3 & 0.37 & 0.52 & 0.3 & 0.22 & 0.37 & 0.15 & 0.3 & 0.07 & 0.15 & 0.15 & 0.15 \tabularnewline
12 & 0.1 & 0.1 & 0.1 & 0.2 & 0.3 & 1.68 & 0.1 & 0.1 & 0.1 & 0.1 & 0.1 & 0.49 & 0.2 & 0.2 & 0.49 & 0.59 & 0.3 & 1.28 & 0.4 & 0.69 & 0.4 & 0.69 & 0.79 & 0.59 & 1.19 & 0.69 & 0.4 & 0.49 & 0.69 & 0.4 & 0.3 & 0.49 & 0.2 & 0.4 & 0.1 & 0.2 & 0.2 & 0.2 \tabularnewline
13 & 0.12 & 0.12 & 0.12 & 0.23 & 0.35 & 1.99 & 0.12 & 0.12 & 0.12 & 0.12 & 0.12 & 0.59 & 0.23 & 0.23 & 0.59 & 0.7 & 0.35 & 1.52 & 0.47 & 0.82 & 0.47 & 0.82 & 0.94 & 0.7 & 1.41 & 0.82 & 0.47 & 0.59 & 0.82 & 0.47 & 0.35 & 0.59 & 0.23 & 0.47 & 0.12 & 0.23 & 0.23 & 0.23 \tabularnewline
14 & 0.15 & 0.15 & 0.15 & 0.31 & 0.46 & 2.62 & 0.15 & 0.15 & 0.15 & 0.15 & 0.15 & 0.77 & 0.31 & 0.31 & 0.77 & 0.93 & 0.46 & 2.01 & 0.62 & 1.08 & 0.62 & 1.08 & 1.23 & 0.93 & 1.85 & 1.08 & 0.62 & 0.77 & 1.08 & 0.62 & 0.46 & 0.77 & 0.31 & 0.62 & 0.15 & 0.31 & 0.31 & 0.31 \tabularnewline
15 & 0.22 & 0.22 & 0.22 & 0.43 & 0.65 & 3.67 & 0.22 & 0.22 & 0.22 & 0.22 & 0.22 & 1.08 & 0.43 & 0.43 & 1.08 & 1.3 & 0.65 & 2.81 & 0.86 & 1.51 & 0.86 & 1.51 & 1.73 & 1.3 & 2.59 & 1.51 & 0.86 & 1.08 & 1.51 & 0.86 & 0.65 & 1.08 & 0.43 & 0.86 & 0.22 & 0.43 & 0.43 & 0.43 \tabularnewline
16 & 0.14 & 0.14 & 0.14 & 0.28 & 0.43 & 2.41 & 0.14 & 0.14 & 0.14 & 0.14 & 0.14 & 0.71 & 0.28 & 0.28 & 0.71 & 0.85 & 0.43 & 1.85 & 0.57 & 0.99 & 0.57 & 0.99 & 1.14 & 0.85 & 1.7 & 0.99 & 0.57 & 0.71 & 0.99 & 0.57 & 0.43 & 0.71 & 0.28 & 0.57 & 0.14 & 0.28 & 0.28 & 0.28 \tabularnewline
17 & 0.07 & 0.07 & 0.07 & 0.15 & 0.22 & 1.26 & 0.07 & 0.07 & 0.07 & 0.07 & 0.07 & 0.37 & 0.15 & 0.15 & 0.37 & 0.44 & 0.22 & 0.96 & 0.3 & 0.52 & 0.3 & 0.52 & 0.59 & 0.44 & 0.89 & 0.52 & 0.3 & 0.37 & 0.52 & 0.3 & 0.22 & 0.37 & 0.15 & 0.3 & 0.07 & 0.15 & 0.15 & 0.15 \tabularnewline
18 & 0.03 & 0.03 & 0.03 & 0.06 & 0.09 & 0.52 & 0.03 & 0.03 & 0.03 & 0.03 & 0.03 & 0.15 & 0.06 & 0.06 & 0.15 & 0.19 & 0.09 & 0.4 & 0.12 & 0.22 & 0.12 & 0.22 & 0.25 & 0.19 & 0.37 & 0.22 & 0.12 & 0.15 & 0.22 & 0.12 & 0.09 & 0.15 & 0.06 & 0.12 & 0.03 & 0.06 & 0.06 & 0.06 \tabularnewline
19 & 0.02 & 0.02 & 0.02 & 0.04 & 0.06 & 0.31 & 0.02 & 0.02 & 0.02 & 0.02 & 0.02 & 0.09 & 0.04 & 0.04 & 0.09 & 0.11 & 0.06 & 0.24 & 0.07 & 0.13 & 0.07 & 0.13 & 0.15 & 0.11 & 0.22 & 0.13 & 0.07 & 0.09 & 0.13 & 0.07 & 0.06 & 0.09 & 0.04 & 0.07 & 0.02 & 0.04 & 0.04 & 0.04 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=182410&T=2

[TABLE]
[ROW]Tabulation of Expected Results[/C][/ROW]
[ROW]Happiness  x  Sport[/C][/ROW]
[ROW][C] [/C][C]30[/C][C]38[/C][C]46[/C][C]52[/C][C]53[/C][C]54[/C][C]56[/C][C]57[/C][C]58[/C][C]60[/C][C]62[/C][C]63[/C][C]64[/C][C]65[/C][C]66[/C][C]67[/C][C]68[/C][C]69[/C][C]70[/C][C]71[/C][C]72[/C][C]73[/C][C]74[/C][C]75[/C][C]76[/C][C]77[/C][C]78[/C][C]79[/C][C]80[/C][C]81[/C][C]82[/C][C]84[/C][C]85[/C][C]86[/C][C]87[/C][C]88[/C][C]89[/C][C]90[/C][/ROW]
[C]7[/C][C]0.01[/C][C]0.01[/C][C]0.01[/C][C]0.01[/C][C]0.02[/C][C]0.1[/C][C]0.01[/C][C]0.01[/C][C]0.01[/C][C]0.01[/C][C]0.01[/C][C]0.03[/C][C]0.01[/C][C]0.01[/C][C]0.03[/C][C]0.04[/C][C]0.02[/C][C]0.08[/C][C]0.02[/C][C]0.04[/C][C]0.02[/C][C]0.04[/C][C]0.05[/C][C]0.04[/C][C]0.07[/C][C]0.04[/C][C]0.02[/C][C]0.03[/C][C]0.04[/C][C]0.02[/C][C]0.02[/C][C]0.03[/C][C]0.01[/C][C]0.02[/C][C]0.01[/C][C]0.01[/C][C]0.01[/C][C]0.01[/C][/ROW]
[C]8[/C][C]0.01[/C][C]0.01[/C][C]0.01[/C][C]0.01[/C][C]0.02[/C][C]0.1[/C][C]0.01[/C][C]0.01[/C][C]0.01[/C][C]0.01[/C][C]0.01[/C][C]0.03[/C][C]0.01[/C][C]0.01[/C][C]0.03[/C][C]0.04[/C][C]0.02[/C][C]0.08[/C][C]0.02[/C][C]0.04[/C][C]0.02[/C][C]0.04[/C][C]0.05[/C][C]0.04[/C][C]0.07[/C][C]0.04[/C][C]0.02[/C][C]0.03[/C][C]0.04[/C][C]0.02[/C][C]0.02[/C][C]0.03[/C][C]0.01[/C][C]0.02[/C][C]0.01[/C][C]0.01[/C][C]0.01[/C][C]0.01[/C][/ROW]
[C]9[/C][C]0.04[/C][C]0.04[/C][C]0.04[/C][C]0.07[/C][C]0.11[/C][C]0.63[/C][C]0.04[/C][C]0.04[/C][C]0.04[/C][C]0.04[/C][C]0.04[/C][C]0.19[/C][C]0.07[/C][C]0.07[/C][C]0.19[/C][C]0.22[/C][C]0.11[/C][C]0.48[/C][C]0.15[/C][C]0.26[/C][C]0.15[/C][C]0.26[/C][C]0.3[/C][C]0.22[/C][C]0.44[/C][C]0.26[/C][C]0.15[/C][C]0.19[/C][C]0.26[/C][C]0.15[/C][C]0.11[/C][C]0.19[/C][C]0.07[/C][C]0.15[/C][C]0.04[/C][C]0.07[/C][C]0.07[/C][C]0.07[/C][/ROW]
[C]10[/C][C]0.02[/C][C]0.02[/C][C]0.02[/C][C]0.05[/C][C]0.07[/C][C]0.42[/C][C]0.02[/C][C]0.02[/C][C]0.02[/C][C]0.02[/C][C]0.02[/C][C]0.12[/C][C]0.05[/C][C]0.05[/C][C]0.12[/C][C]0.15[/C][C]0.07[/C][C]0.32[/C][C]0.1[/C][C]0.17[/C][C]0.1[/C][C]0.17[/C][C]0.2[/C][C]0.15[/C][C]0.3[/C][C]0.17[/C][C]0.1[/C][C]0.12[/C][C]0.17[/C][C]0.1[/C][C]0.07[/C][C]0.12[/C][C]0.05[/C][C]0.1[/C][C]0.02[/C][C]0.05[/C][C]0.05[/C][C]0.05[/C][/ROW]
[C]11[/C][C]0.07[/C][C]0.07[/C][C]0.07[/C][C]0.15[/C][C]0.22[/C][C]1.26[/C][C]0.07[/C][C]0.07[/C][C]0.07[/C][C]0.07[/C][C]0.07[/C][C]0.37[/C][C]0.15[/C][C]0.15[/C][C]0.37[/C][C]0.44[/C][C]0.22[/C][C]0.96[/C][C]0.3[/C][C]0.52[/C][C]0.3[/C][C]0.52[/C][C]0.59[/C][C]0.44[/C][C]0.89[/C][C]0.52[/C][C]0.3[/C][C]0.37[/C][C]0.52[/C][C]0.3[/C][C]0.22[/C][C]0.37[/C][C]0.15[/C][C]0.3[/C][C]0.07[/C][C]0.15[/C][C]0.15[/C][C]0.15[/C][/ROW]
[C]12[/C][C]0.1[/C][C]0.1[/C][C]0.1[/C][C]0.2[/C][C]0.3[/C][C]1.68[/C][C]0.1[/C][C]0.1[/C][C]0.1[/C][C]0.1[/C][C]0.1[/C][C]0.49[/C][C]0.2[/C][C]0.2[/C][C]0.49[/C][C]0.59[/C][C]0.3[/C][C]1.28[/C][C]0.4[/C][C]0.69[/C][C]0.4[/C][C]0.69[/C][C]0.79[/C][C]0.59[/C][C]1.19[/C][C]0.69[/C][C]0.4[/C][C]0.49[/C][C]0.69[/C][C]0.4[/C][C]0.3[/C][C]0.49[/C][C]0.2[/C][C]0.4[/C][C]0.1[/C][C]0.2[/C][C]0.2[/C][C]0.2[/C][/ROW]
[C]13[/C][C]0.12[/C][C]0.12[/C][C]0.12[/C][C]0.23[/C][C]0.35[/C][C]1.99[/C][C]0.12[/C][C]0.12[/C][C]0.12[/C][C]0.12[/C][C]0.12[/C][C]0.59[/C][C]0.23[/C][C]0.23[/C][C]0.59[/C][C]0.7[/C][C]0.35[/C][C]1.52[/C][C]0.47[/C][C]0.82[/C][C]0.47[/C][C]0.82[/C][C]0.94[/C][C]0.7[/C][C]1.41[/C][C]0.82[/C][C]0.47[/C][C]0.59[/C][C]0.82[/C][C]0.47[/C][C]0.35[/C][C]0.59[/C][C]0.23[/C][C]0.47[/C][C]0.12[/C][C]0.23[/C][C]0.23[/C][C]0.23[/C][/ROW]
[C]14[/C][C]0.15[/C][C]0.15[/C][C]0.15[/C][C]0.31[/C][C]0.46[/C][C]2.62[/C][C]0.15[/C][C]0.15[/C][C]0.15[/C][C]0.15[/C][C]0.15[/C][C]0.77[/C][C]0.31[/C][C]0.31[/C][C]0.77[/C][C]0.93[/C][C]0.46[/C][C]2.01[/C][C]0.62[/C][C]1.08[/C][C]0.62[/C][C]1.08[/C][C]1.23[/C][C]0.93[/C][C]1.85[/C][C]1.08[/C][C]0.62[/C][C]0.77[/C][C]1.08[/C][C]0.62[/C][C]0.46[/C][C]0.77[/C][C]0.31[/C][C]0.62[/C][C]0.15[/C][C]0.31[/C][C]0.31[/C][C]0.31[/C][/ROW]
[C]15[/C][C]0.22[/C][C]0.22[/C][C]0.22[/C][C]0.43[/C][C]0.65[/C][C]3.67[/C][C]0.22[/C][C]0.22[/C][C]0.22[/C][C]0.22[/C][C]0.22[/C][C]1.08[/C][C]0.43[/C][C]0.43[/C][C]1.08[/C][C]1.3[/C][C]0.65[/C][C]2.81[/C][C]0.86[/C][C]1.51[/C][C]0.86[/C][C]1.51[/C][C]1.73[/C][C]1.3[/C][C]2.59[/C][C]1.51[/C][C]0.86[/C][C]1.08[/C][C]1.51[/C][C]0.86[/C][C]0.65[/C][C]1.08[/C][C]0.43[/C][C]0.86[/C][C]0.22[/C][C]0.43[/C][C]0.43[/C][C]0.43[/C][/ROW]
[C]16[/C][C]0.14[/C][C]0.14[/C][C]0.14[/C][C]0.28[/C][C]0.43[/C][C]2.41[/C][C]0.14[/C][C]0.14[/C][C]0.14[/C][C]0.14[/C][C]0.14[/C][C]0.71[/C][C]0.28[/C][C]0.28[/C][C]0.71[/C][C]0.85[/C][C]0.43[/C][C]1.85[/C][C]0.57[/C][C]0.99[/C][C]0.57[/C][C]0.99[/C][C]1.14[/C][C]0.85[/C][C]1.7[/C][C]0.99[/C][C]0.57[/C][C]0.71[/C][C]0.99[/C][C]0.57[/C][C]0.43[/C][C]0.71[/C][C]0.28[/C][C]0.57[/C][C]0.14[/C][C]0.28[/C][C]0.28[/C][C]0.28[/C][/ROW]
[C]17[/C][C]0.07[/C][C]0.07[/C][C]0.07[/C][C]0.15[/C][C]0.22[/C][C]1.26[/C][C]0.07[/C][C]0.07[/C][C]0.07[/C][C]0.07[/C][C]0.07[/C][C]0.37[/C][C]0.15[/C][C]0.15[/C][C]0.37[/C][C]0.44[/C][C]0.22[/C][C]0.96[/C][C]0.3[/C][C]0.52[/C][C]0.3[/C][C]0.52[/C][C]0.59[/C][C]0.44[/C][C]0.89[/C][C]0.52[/C][C]0.3[/C][C]0.37[/C][C]0.52[/C][C]0.3[/C][C]0.22[/C][C]0.37[/C][C]0.15[/C][C]0.3[/C][C]0.07[/C][C]0.15[/C][C]0.15[/C][C]0.15[/C][/ROW]
[C]18[/C][C]0.03[/C][C]0.03[/C][C]0.03[/C][C]0.06[/C][C]0.09[/C][C]0.52[/C][C]0.03[/C][C]0.03[/C][C]0.03[/C][C]0.03[/C][C]0.03[/C][C]0.15[/C][C]0.06[/C][C]0.06[/C][C]0.15[/C][C]0.19[/C][C]0.09[/C][C]0.4[/C][C]0.12[/C][C]0.22[/C][C]0.12[/C][C]0.22[/C][C]0.25[/C][C]0.19[/C][C]0.37[/C][C]0.22[/C][C]0.12[/C][C]0.15[/C][C]0.22[/C][C]0.12[/C][C]0.09[/C][C]0.15[/C][C]0.06[/C][C]0.12[/C][C]0.03[/C][C]0.06[/C][C]0.06[/C][C]0.06[/C][/ROW]
[C]19[/C][C]0.02[/C][C]0.02[/C][C]0.02[/C][C]0.04[/C][C]0.06[/C][C]0.31[/C][C]0.02[/C][C]0.02[/C][C]0.02[/C][C]0.02[/C][C]0.02[/C][C]0.09[/C][C]0.04[/C][C]0.04[/C][C]0.09[/C][C]0.11[/C][C]0.06[/C][C]0.24[/C][C]0.07[/C][C]0.13[/C][C]0.07[/C][C]0.13[/C][C]0.15[/C][C]0.11[/C][C]0.22[/C][C]0.13[/C][C]0.07[/C][C]0.09[/C][C]0.13[/C][C]0.07[/C][C]0.06[/C][C]0.09[/C][C]0.04[/C][C]0.07[/C][C]0.02[/C][C]0.04[/C][C]0.04[/C][C]0.04[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=182410&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=182410&T=2

As an alternative you can also use a QR Code:  

The GUIDs for individual cells are displayed in the table below:

Tabulation of Expected Results
Happiness x Sport
3038465253545657586062636465666768697071727374757677787980818284858687888990
70.010.010.010.010.020.10.010.010.010.010.010.030.010.010.030.040.020.080.020.040.020.040.050.040.070.040.020.030.040.020.020.030.010.020.010.010.010.01
80.010.010.010.010.020.10.010.010.010.010.010.030.010.010.030.040.020.080.020.040.020.040.050.040.070.040.020.030.040.020.020.030.010.020.010.010.010.01
90.040.040.040.070.110.630.040.040.040.040.040.190.070.070.190.220.110.480.150.260.150.260.30.220.440.260.150.190.260.150.110.190.070.150.040.070.070.07
100.020.020.020.050.070.420.020.020.020.020.020.120.050.050.120.150.070.320.10.170.10.170.20.150.30.170.10.120.170.10.070.120.050.10.020.050.050.05
110.070.070.070.150.221.260.070.070.070.070.070.370.150.150.370.440.220.960.30.520.30.520.590.440.890.520.30.370.520.30.220.370.150.30.070.150.150.15
120.10.10.10.20.31.680.10.10.10.10.10.490.20.20.490.590.31.280.40.690.40.690.790.591.190.690.40.490.690.40.30.490.20.40.10.20.20.2
130.120.120.120.230.351.990.120.120.120.120.120.590.230.230.590.70.351.520.470.820.470.820.940.71.410.820.470.590.820.470.350.590.230.470.120.230.230.23
140.150.150.150.310.462.620.150.150.150.150.150.770.310.310.770.930.462.010.621.080.621.081.230.931.851.080.620.771.080.620.460.770.310.620.150.310.310.31
150.220.220.220.430.653.670.220.220.220.220.221.080.430.431.081.30.652.810.861.510.861.511.731.32.591.510.861.081.510.860.651.080.430.860.220.430.430.43
160.140.140.140.280.432.410.140.140.140.140.140.710.280.280.710.850.431.850.570.990.570.991.140.851.70.990.570.710.990.570.430.710.280.570.140.280.280.28
170.070.070.070.150.221.260.070.070.070.070.070.370.150.150.370.440.220.960.30.520.30.520.590.440.890.520.30.370.520.30.220.370.150.30.070.150.150.15
180.030.030.030.060.090.520.030.030.030.030.030.150.060.060.150.190.090.40.120.220.120.220.250.190.370.220.120.150.220.120.090.150.060.120.030.060.060.06
190.020.020.020.040.060.310.020.020.020.020.020.090.040.040.090.110.060.240.070.130.070.130.150.110.220.130.070.090.130.070.060.090.040.070.020.040.040.04







Statistical Results
Pearson's Chi-squared test
Pearson Chi Square Statistic529.37
Degrees of Freedom444
P value0

\begin{tabular}{lllllllll}
\hline
Statistical Results \tabularnewline
Pearson's Chi-squared test \tabularnewline
Pearson Chi Square Statistic & 529.37 \tabularnewline
Degrees of Freedom & 444 \tabularnewline
P value & 0 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=182410&T=3

[TABLE]
[ROW][C]Statistical Results[/C][/ROW]
[ROW][C]Pearson's Chi-squared test[/C][/ROW]
[ROW][C]Pearson Chi Square Statistic[/C][C]529.37[/C][/ROW]
[ROW][C]Degrees of Freedom[/C][C]444[/C][/ROW]
[ROW][C]P value[/C][C]0[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=182410&T=3

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=182410&T=3

As an alternative you can also use a QR Code:  

The GUIDs for individual cells are displayed in the table below:

Statistical Results
Pearson's Chi-squared test
Pearson Chi Square Statistic529.37
Degrees of Freedom444
P value0



Parameters (Session):
par1 = 1 ; par2 = 2 ; par3 = Pearson Chi-Squared ;
Parameters (R input):
par1 = 1 ; par2 = 2 ; par3 = Pearson Chi-Squared ;
R code (references can be found in the software module):
library(vcd)
cat1 <- as.numeric(par1) #
cat2<- as.numeric(par2) #
simulate.p.value=FALSE
if (par3 == 'Exact Pearson Chi-Squared by Simulation') simulate.p.value=TRUE
x <- t(x)
(z <- array(unlist(x),dim=c(length(x[,1]),length(x[1,]))))
(table1 <- table(z[,cat1],z[,cat2]))
(V1<-dimnames(y)[[1]][cat1])
(V2<-dimnames(y)[[1]][cat2])
bitmap(file='pic1.png')
assoc(ftable(z[,cat1],z[,cat2],row.vars=1,dnn=c(V1,V2)),shade=T)
dev.off()
load(file='createtable')
a<-table.start()
a<-table.row.start(a)
a<-table.element(a,'Tabulation of Results',ncol(table1)+1,TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,paste(V1,' x ', V2),ncol(table1)+1,TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a, ' ', 1,TRUE)
for(nc in 1:ncol(table1)){
a<-table.element(a, colnames(table1)[nc], 1, TRUE)
}
a<-table.row.end(a)
for(nr in 1:nrow(table1) ){
a<-table.element(a, rownames(table1)[nr], 1, TRUE)
for(nc in 1:ncol(table1) ){
a<-table.element(a, table1[nr, nc], 1, FALSE)
}
a<-table.row.end(a)
}
a<-table.end(a)
table.save(a,file='mytable.tab')
(cst<-chisq.test(table1, simulate.p.value=simulate.p.value) )
if (par3 == 'McNemar Chi-Squared') {
(cst <- mcnemar.test(table1))
}
if (par3=='Fisher Exact Test') {
(cst <- fisher.test(table1))
}
if ((par3 != 'McNemar Chi-Squared') & (par3 != 'Fisher Exact Test')) {
a<-table.start()
a<-table.row.start(a)
a<-table.element(a,'Tabulation of Expected Results',ncol(table1)+1,TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,paste(V1,' x ', V2),ncol(table1)+1,TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a, ' ', 1,TRUE)
for(nc in 1:ncol(table1)){
a<-table.element(a, colnames(table1)[nc], 1, TRUE)
}
a<-table.row.end(a)
for(nr in 1:nrow(table1) ){
a<-table.element(a, rownames(table1)[nr], 1, TRUE)
for(nc in 1:ncol(table1) ){
a<-table.element(a, round(cst$expected[nr, nc], digits=2), 1, FALSE)
}
a<-table.row.end(a)
}
a<-table.end(a)
table.save(a,file='mytable1.tab')
}
a<-table.start()
a<-table.row.start(a)
a<-table.element(a,'Statistical Results',2,TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a, cst$method, 2,TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
if (par3=='Pearson Chi-Squared') a<-table.element(a, 'Pearson Chi Square Statistic', 1, TRUE)
if (par3=='Exact Pearson Chi-Squared by Simulation') a<-table.element(a, 'Exact Pearson Chi Square Statistic', 1, TRUE)
if (par3=='McNemar Chi-Squared') a<-table.element(a, 'McNemar Chi Square Statistic', 1, TRUE)
if (par3=='Fisher Exact Test') a<-table.element(a, 'Odds Ratio', 1, TRUE)
if (par3=='Fisher Exact Test') {
if ((ncol(table1) == 2) & (nrow(table1) == 2)) {
a<-table.element(a, round(cst$estimate, digits=2), 1,FALSE)
} else {
a<-table.element(a, '--', 1,FALSE)
}
} else {
a<-table.element(a, round(cst$statistic, digits=2), 1,FALSE)
}
a<-table.row.end(a)
if(!simulate.p.value){
if(par3!='Fisher Exact Test') {
a<-table.row.start(a)
a<-table.element(a, 'Degrees of Freedom', 1, TRUE)
a<-table.element(a, cst$parameter, 1,FALSE)
a<-table.row.end(a)
}
}
a<-table.row.start(a)
a<-table.element(a, 'P value', 1, TRUE)
a<-table.element(a, round(cst$p.value, digits=2), 1,FALSE)
a<-table.row.end(a)
a<-table.end(a)
table.save(a,file='mytable2.tab')