Free Statistics

of Irreproducible Research!

Author's title

Author*Unverified author*
R Software Modulerwasp_histogram.wasp
Title produced by softwareHistogram
Date of computationFri, 24 May 2013 12:18:14 -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/2013/May/24/t1369412310ohmo9e2jm5vxqd9.htm/, Retrieved Tue, 30 Apr 2024 23:14:41 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=210440, Retrieved Tue, 30 Apr 2024 23:14:41 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact131
Family? (F = Feedback message, R = changed R code, M = changed R Module, P = changed Parameters, D = changed Data)
-       [Histogram] [] [2013-05-24 16:18:14] [efa64194dd516a5eefd4f5387836fbaf] [Current]
Feedback Forum

Post a new message
Dataseries X:
6.94
6.98
7.05
7.07
7.08
7.10
7.12
7.13
7.18
7.20
7.21
7.22
7.26
7.29
7.32
7.36
7.41
7.48
7.48
7.51
7.51
7.51
7.51
7.54
7.58
7.64
7.63
7.71
7.77
7.85
7.88
7.89
7.94
8.02
8.08
8.15
8.17
8.17
8.25
8.33
8.41
8.43
8.48
8.52
8.56
8.63
8.70
8.72
8.73
8.82
8.83
8.81
8.82
8.83
8.84
8.83
8.82
8.87
8.87
8.87
8.86
8.95
8.94
8.96
8.96
9.01
9.01
8.96
8.96
8.94
8.93
8.89




Summary of computational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time2 seconds
R Server'Sir Maurice George Kendall' @ kendall.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 & 2 seconds \tabularnewline
R Server & 'Sir Maurice George Kendall' @ kendall.wessa.net \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=210440&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]2 seconds[/C][/ROW]
[ROW][C]R Server[/C][C]'Sir Maurice George Kendall' @ kendall.wessa.net[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=210440&T=0

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=210440&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 time2 seconds
R Server'Sir Maurice George Kendall' @ kendall.wessa.net







Frequency Table (Histogram)
BinsMidpointAbs. FrequencyRel. FrequencyCumul. Rel. Freq.Density
[6.9,6.95[6.92510.0138890.0138890.277778
[6.95,7[6.97510.0138890.0277780.277778
[7,7.05[7.025000.0277780
[7.05,7.1[7.07530.0416670.0694440.833333
[7.1,7.15[7.12530.0416670.1111110.833333
[7.15,7.2[7.17510.0138890.1250.277778
[7.2,7.25[7.22530.0416670.1666670.833333
[7.25,7.3[7.27520.0277780.1944440.555556
[7.3,7.35[7.32510.0138890.2083330.277778
[7.35,7.4[7.37510.0138890.2222220.277778
[7.4,7.45[7.42510.0138890.2361110.277778
[7.45,7.5[7.47520.0277780.2638890.555556
[7.5,7.55[7.52550.0694440.3333331.388889
[7.55,7.6[7.57510.0138890.3472220.277778
[7.6,7.65[7.62520.0277780.3750.555556
[7.65,7.7[7.675000.3750
[7.7,7.75[7.72510.0138890.3888890.277778
[7.75,7.8[7.77510.0138890.4027780.277778
[7.8,7.85[7.825000.4027780
[7.85,7.9[7.87530.0416670.4444440.833333
[7.9,7.95[7.92510.0138890.4583330.277778
[7.95,8[7.975000.4583330
[8,8.05[8.02510.0138890.4722220.277778
[8.05,8.1[8.07510.0138890.4861110.277778
[8.1,8.15[8.125000.4861110
[8.15,8.2[8.17530.0416670.5277780.833333
[8.2,8.25[8.225000.5277780
[8.25,8.3[8.27510.0138890.5416670.277778
[8.3,8.35[8.32510.0138890.5555560.277778
[8.35,8.4[8.375000.5555560
[8.4,8.45[8.42520.0277780.5833330.555556
[8.45,8.5[8.47510.0138890.5972220.277778
[8.5,8.55[8.52510.0138890.6111110.277778
[8.55,8.6[8.57510.0138890.6250.277778
[8.6,8.65[8.62510.0138890.6388890.277778
[8.65,8.7[8.675000.6388890
[8.7,8.75[8.72530.0416670.6805560.833333
[8.75,8.8[8.775000.6805560
[8.8,8.85[8.82580.1111110.7916672.222222
[8.85,8.9[8.87550.0694440.8611111.388889
[8.9,8.95[8.92530.0416670.9027780.833333
[8.95,9[8.97550.0694440.9722221.388889
[9,9.05]9.02520.02777810.555556

\begin{tabular}{lllllllll}
\hline
Frequency Table (Histogram) \tabularnewline
Bins & Midpoint & Abs. Frequency & Rel. Frequency & Cumul. Rel. Freq. & Density \tabularnewline
[6.9,6.95[ & 6.925 & 1 & 0.013889 & 0.013889 & 0.277778 \tabularnewline
[6.95,7[ & 6.975 & 1 & 0.013889 & 0.027778 & 0.277778 \tabularnewline
[7,7.05[ & 7.025 & 0 & 0 & 0.027778 & 0 \tabularnewline
[7.05,7.1[ & 7.075 & 3 & 0.041667 & 0.069444 & 0.833333 \tabularnewline
[7.1,7.15[ & 7.125 & 3 & 0.041667 & 0.111111 & 0.833333 \tabularnewline
[7.15,7.2[ & 7.175 & 1 & 0.013889 & 0.125 & 0.277778 \tabularnewline
[7.2,7.25[ & 7.225 & 3 & 0.041667 & 0.166667 & 0.833333 \tabularnewline
[7.25,7.3[ & 7.275 & 2 & 0.027778 & 0.194444 & 0.555556 \tabularnewline
[7.3,7.35[ & 7.325 & 1 & 0.013889 & 0.208333 & 0.277778 \tabularnewline
[7.35,7.4[ & 7.375 & 1 & 0.013889 & 0.222222 & 0.277778 \tabularnewline
[7.4,7.45[ & 7.425 & 1 & 0.013889 & 0.236111 & 0.277778 \tabularnewline
[7.45,7.5[ & 7.475 & 2 & 0.027778 & 0.263889 & 0.555556 \tabularnewline
[7.5,7.55[ & 7.525 & 5 & 0.069444 & 0.333333 & 1.388889 \tabularnewline
[7.55,7.6[ & 7.575 & 1 & 0.013889 & 0.347222 & 0.277778 \tabularnewline
[7.6,7.65[ & 7.625 & 2 & 0.027778 & 0.375 & 0.555556 \tabularnewline
[7.65,7.7[ & 7.675 & 0 & 0 & 0.375 & 0 \tabularnewline
[7.7,7.75[ & 7.725 & 1 & 0.013889 & 0.388889 & 0.277778 \tabularnewline
[7.75,7.8[ & 7.775 & 1 & 0.013889 & 0.402778 & 0.277778 \tabularnewline
[7.8,7.85[ & 7.825 & 0 & 0 & 0.402778 & 0 \tabularnewline
[7.85,7.9[ & 7.875 & 3 & 0.041667 & 0.444444 & 0.833333 \tabularnewline
[7.9,7.95[ & 7.925 & 1 & 0.013889 & 0.458333 & 0.277778 \tabularnewline
[7.95,8[ & 7.975 & 0 & 0 & 0.458333 & 0 \tabularnewline
[8,8.05[ & 8.025 & 1 & 0.013889 & 0.472222 & 0.277778 \tabularnewline
[8.05,8.1[ & 8.075 & 1 & 0.013889 & 0.486111 & 0.277778 \tabularnewline
[8.1,8.15[ & 8.125 & 0 & 0 & 0.486111 & 0 \tabularnewline
[8.15,8.2[ & 8.175 & 3 & 0.041667 & 0.527778 & 0.833333 \tabularnewline
[8.2,8.25[ & 8.225 & 0 & 0 & 0.527778 & 0 \tabularnewline
[8.25,8.3[ & 8.275 & 1 & 0.013889 & 0.541667 & 0.277778 \tabularnewline
[8.3,8.35[ & 8.325 & 1 & 0.013889 & 0.555556 & 0.277778 \tabularnewline
[8.35,8.4[ & 8.375 & 0 & 0 & 0.555556 & 0 \tabularnewline
[8.4,8.45[ & 8.425 & 2 & 0.027778 & 0.583333 & 0.555556 \tabularnewline
[8.45,8.5[ & 8.475 & 1 & 0.013889 & 0.597222 & 0.277778 \tabularnewline
[8.5,8.55[ & 8.525 & 1 & 0.013889 & 0.611111 & 0.277778 \tabularnewline
[8.55,8.6[ & 8.575 & 1 & 0.013889 & 0.625 & 0.277778 \tabularnewline
[8.6,8.65[ & 8.625 & 1 & 0.013889 & 0.638889 & 0.277778 \tabularnewline
[8.65,8.7[ & 8.675 & 0 & 0 & 0.638889 & 0 \tabularnewline
[8.7,8.75[ & 8.725 & 3 & 0.041667 & 0.680556 & 0.833333 \tabularnewline
[8.75,8.8[ & 8.775 & 0 & 0 & 0.680556 & 0 \tabularnewline
[8.8,8.85[ & 8.825 & 8 & 0.111111 & 0.791667 & 2.222222 \tabularnewline
[8.85,8.9[ & 8.875 & 5 & 0.069444 & 0.861111 & 1.388889 \tabularnewline
[8.9,8.95[ & 8.925 & 3 & 0.041667 & 0.902778 & 0.833333 \tabularnewline
[8.95,9[ & 8.975 & 5 & 0.069444 & 0.972222 & 1.388889 \tabularnewline
[9,9.05] & 9.025 & 2 & 0.027778 & 1 & 0.555556 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=210440&T=1

[TABLE]
[ROW][C]Frequency Table (Histogram)[/C][/ROW]
[ROW][C]Bins[/C][C]Midpoint[/C][C]Abs. Frequency[/C][C]Rel. Frequency[/C][C]Cumul. Rel. Freq.[/C][C]Density[/C][/ROW]
[ROW][C][6.9,6.95[[/C][C]6.925[/C][C]1[/C][C]0.013889[/C][C]0.013889[/C][C]0.277778[/C][/ROW]
[ROW][C][6.95,7[[/C][C]6.975[/C][C]1[/C][C]0.013889[/C][C]0.027778[/C][C]0.277778[/C][/ROW]
[ROW][C][7,7.05[[/C][C]7.025[/C][C]0[/C][C]0[/C][C]0.027778[/C][C]0[/C][/ROW]
[ROW][C][7.05,7.1[[/C][C]7.075[/C][C]3[/C][C]0.041667[/C][C]0.069444[/C][C]0.833333[/C][/ROW]
[ROW][C][7.1,7.15[[/C][C]7.125[/C][C]3[/C][C]0.041667[/C][C]0.111111[/C][C]0.833333[/C][/ROW]
[ROW][C][7.15,7.2[[/C][C]7.175[/C][C]1[/C][C]0.013889[/C][C]0.125[/C][C]0.277778[/C][/ROW]
[ROW][C][7.2,7.25[[/C][C]7.225[/C][C]3[/C][C]0.041667[/C][C]0.166667[/C][C]0.833333[/C][/ROW]
[ROW][C][7.25,7.3[[/C][C]7.275[/C][C]2[/C][C]0.027778[/C][C]0.194444[/C][C]0.555556[/C][/ROW]
[ROW][C][7.3,7.35[[/C][C]7.325[/C][C]1[/C][C]0.013889[/C][C]0.208333[/C][C]0.277778[/C][/ROW]
[ROW][C][7.35,7.4[[/C][C]7.375[/C][C]1[/C][C]0.013889[/C][C]0.222222[/C][C]0.277778[/C][/ROW]
[ROW][C][7.4,7.45[[/C][C]7.425[/C][C]1[/C][C]0.013889[/C][C]0.236111[/C][C]0.277778[/C][/ROW]
[ROW][C][7.45,7.5[[/C][C]7.475[/C][C]2[/C][C]0.027778[/C][C]0.263889[/C][C]0.555556[/C][/ROW]
[ROW][C][7.5,7.55[[/C][C]7.525[/C][C]5[/C][C]0.069444[/C][C]0.333333[/C][C]1.388889[/C][/ROW]
[ROW][C][7.55,7.6[[/C][C]7.575[/C][C]1[/C][C]0.013889[/C][C]0.347222[/C][C]0.277778[/C][/ROW]
[ROW][C][7.6,7.65[[/C][C]7.625[/C][C]2[/C][C]0.027778[/C][C]0.375[/C][C]0.555556[/C][/ROW]
[ROW][C][7.65,7.7[[/C][C]7.675[/C][C]0[/C][C]0[/C][C]0.375[/C][C]0[/C][/ROW]
[ROW][C][7.7,7.75[[/C][C]7.725[/C][C]1[/C][C]0.013889[/C][C]0.388889[/C][C]0.277778[/C][/ROW]
[ROW][C][7.75,7.8[[/C][C]7.775[/C][C]1[/C][C]0.013889[/C][C]0.402778[/C][C]0.277778[/C][/ROW]
[ROW][C][7.8,7.85[[/C][C]7.825[/C][C]0[/C][C]0[/C][C]0.402778[/C][C]0[/C][/ROW]
[ROW][C][7.85,7.9[[/C][C]7.875[/C][C]3[/C][C]0.041667[/C][C]0.444444[/C][C]0.833333[/C][/ROW]
[ROW][C][7.9,7.95[[/C][C]7.925[/C][C]1[/C][C]0.013889[/C][C]0.458333[/C][C]0.277778[/C][/ROW]
[ROW][C][7.95,8[[/C][C]7.975[/C][C]0[/C][C]0[/C][C]0.458333[/C][C]0[/C][/ROW]
[ROW][C][8,8.05[[/C][C]8.025[/C][C]1[/C][C]0.013889[/C][C]0.472222[/C][C]0.277778[/C][/ROW]
[ROW][C][8.05,8.1[[/C][C]8.075[/C][C]1[/C][C]0.013889[/C][C]0.486111[/C][C]0.277778[/C][/ROW]
[ROW][C][8.1,8.15[[/C][C]8.125[/C][C]0[/C][C]0[/C][C]0.486111[/C][C]0[/C][/ROW]
[ROW][C][8.15,8.2[[/C][C]8.175[/C][C]3[/C][C]0.041667[/C][C]0.527778[/C][C]0.833333[/C][/ROW]
[ROW][C][8.2,8.25[[/C][C]8.225[/C][C]0[/C][C]0[/C][C]0.527778[/C][C]0[/C][/ROW]
[ROW][C][8.25,8.3[[/C][C]8.275[/C][C]1[/C][C]0.013889[/C][C]0.541667[/C][C]0.277778[/C][/ROW]
[ROW][C][8.3,8.35[[/C][C]8.325[/C][C]1[/C][C]0.013889[/C][C]0.555556[/C][C]0.277778[/C][/ROW]
[ROW][C][8.35,8.4[[/C][C]8.375[/C][C]0[/C][C]0[/C][C]0.555556[/C][C]0[/C][/ROW]
[ROW][C][8.4,8.45[[/C][C]8.425[/C][C]2[/C][C]0.027778[/C][C]0.583333[/C][C]0.555556[/C][/ROW]
[ROW][C][8.45,8.5[[/C][C]8.475[/C][C]1[/C][C]0.013889[/C][C]0.597222[/C][C]0.277778[/C][/ROW]
[ROW][C][8.5,8.55[[/C][C]8.525[/C][C]1[/C][C]0.013889[/C][C]0.611111[/C][C]0.277778[/C][/ROW]
[ROW][C][8.55,8.6[[/C][C]8.575[/C][C]1[/C][C]0.013889[/C][C]0.625[/C][C]0.277778[/C][/ROW]
[ROW][C][8.6,8.65[[/C][C]8.625[/C][C]1[/C][C]0.013889[/C][C]0.638889[/C][C]0.277778[/C][/ROW]
[ROW][C][8.65,8.7[[/C][C]8.675[/C][C]0[/C][C]0[/C][C]0.638889[/C][C]0[/C][/ROW]
[ROW][C][8.7,8.75[[/C][C]8.725[/C][C]3[/C][C]0.041667[/C][C]0.680556[/C][C]0.833333[/C][/ROW]
[ROW][C][8.75,8.8[[/C][C]8.775[/C][C]0[/C][C]0[/C][C]0.680556[/C][C]0[/C][/ROW]
[ROW][C][8.8,8.85[[/C][C]8.825[/C][C]8[/C][C]0.111111[/C][C]0.791667[/C][C]2.222222[/C][/ROW]
[ROW][C][8.85,8.9[[/C][C]8.875[/C][C]5[/C][C]0.069444[/C][C]0.861111[/C][C]1.388889[/C][/ROW]
[ROW][C][8.9,8.95[[/C][C]8.925[/C][C]3[/C][C]0.041667[/C][C]0.902778[/C][C]0.833333[/C][/ROW]
[ROW][C][8.95,9[[/C][C]8.975[/C][C]5[/C][C]0.069444[/C][C]0.972222[/C][C]1.388889[/C][/ROW]
[ROW][C][9,9.05][/C][C]9.025[/C][C]2[/C][C]0.027778[/C][C]1[/C][C]0.555556[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=210440&T=1

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

As an alternative you can also use a QR Code:  

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

Frequency Table (Histogram)
BinsMidpointAbs. FrequencyRel. FrequencyCumul. Rel. Freq.Density
[6.9,6.95[6.92510.0138890.0138890.277778
[6.95,7[6.97510.0138890.0277780.277778
[7,7.05[7.025000.0277780
[7.05,7.1[7.07530.0416670.0694440.833333
[7.1,7.15[7.12530.0416670.1111110.833333
[7.15,7.2[7.17510.0138890.1250.277778
[7.2,7.25[7.22530.0416670.1666670.833333
[7.25,7.3[7.27520.0277780.1944440.555556
[7.3,7.35[7.32510.0138890.2083330.277778
[7.35,7.4[7.37510.0138890.2222220.277778
[7.4,7.45[7.42510.0138890.2361110.277778
[7.45,7.5[7.47520.0277780.2638890.555556
[7.5,7.55[7.52550.0694440.3333331.388889
[7.55,7.6[7.57510.0138890.3472220.277778
[7.6,7.65[7.62520.0277780.3750.555556
[7.65,7.7[7.675000.3750
[7.7,7.75[7.72510.0138890.3888890.277778
[7.75,7.8[7.77510.0138890.4027780.277778
[7.8,7.85[7.825000.4027780
[7.85,7.9[7.87530.0416670.4444440.833333
[7.9,7.95[7.92510.0138890.4583330.277778
[7.95,8[7.975000.4583330
[8,8.05[8.02510.0138890.4722220.277778
[8.05,8.1[8.07510.0138890.4861110.277778
[8.1,8.15[8.125000.4861110
[8.15,8.2[8.17530.0416670.5277780.833333
[8.2,8.25[8.225000.5277780
[8.25,8.3[8.27510.0138890.5416670.277778
[8.3,8.35[8.32510.0138890.5555560.277778
[8.35,8.4[8.375000.5555560
[8.4,8.45[8.42520.0277780.5833330.555556
[8.45,8.5[8.47510.0138890.5972220.277778
[8.5,8.55[8.52510.0138890.6111110.277778
[8.55,8.6[8.57510.0138890.6250.277778
[8.6,8.65[8.62510.0138890.6388890.277778
[8.65,8.7[8.675000.6388890
[8.7,8.75[8.72530.0416670.6805560.833333
[8.75,8.8[8.775000.6805560
[8.8,8.85[8.82580.1111110.7916672.222222
[8.85,8.9[8.87550.0694440.8611111.388889
[8.9,8.95[8.92530.0416670.9027780.833333
[8.95,9[8.97550.0694440.9722221.388889
[9,9.05]9.02520.02777810.555556



Parameters (Session):
par1 = 36 ; par2 = grey ; par3 = FALSE ; par4 = Unknown ;
Parameters (R input):
par1 = 36 ; par2 = grey ; par3 = FALSE ; par4 = Unknown ;
R code (references can be found in the software module):
par4 <- 'Unknown'
par3 <- 'FALSE'
par2 <- 'grey'
par1 <- '12'
par1 <- as.numeric(par1)
if (par3 == 'TRUE') par3 <- TRUE
if (par3 == 'FALSE') par3 <- FALSE
if (par4 == 'Unknown') par1 <- as.numeric(par1)
if (par4 == 'Interval/Ratio') par1 <- as.numeric(par1)
if (par4 == '3-point Likert') par1 <- c(1:3 - 0.5, 3.5)
if (par4 == '4-point Likert') par1 <- c(1:4 - 0.5, 4.5)
if (par4 == '5-point Likert') par1 <- c(1:5 - 0.5, 5.5)
if (par4 == '6-point Likert') par1 <- c(1:6 - 0.5, 6.5)
if (par4 == '7-point Likert') par1 <- c(1:7 - 0.5, 7.5)
if (par4 == '8-point Likert') par1 <- c(1:8 - 0.5, 8.5)
if (par4 == '9-point Likert') par1 <- c(1:9 - 0.5, 9.5)
if (par4 == '10-point Likert') par1 <- c(1:10 - 0.5, 10.5)
bitmap(file='test1.png')
if(is.numeric(x[1])) {
if (is.na(par1)) {
myhist<-hist(x,col=par2,main=main,xlab=xlab,right=par3)
} else {
if (par1 < 0) par1 <- 3
if (par1 > 50) par1 <- 50
myhist<-hist(x,breaks=par1,col=par2,main=main,xlab=xlab,right=par3)
}
} else {
plot(mytab <- table(x),col=par2,main='Frequency Plot',xlab=xlab,ylab='Absolute Frequency')
}
dev.off()
if(is.numeric(x[1])) {
myhist
n <- length(x)
load(file='createtable')
a<-table.start()
a<-table.row.start(a)
a<-table.element(a,hyperlink('histogram.htm','Frequency Table (Histogram)',''),6,TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'Bins',header=TRUE)
a<-table.element(a,'Midpoint',header=TRUE)
a<-table.element(a,'Abs. Frequency',header=TRUE)
a<-table.element(a,'Rel. Frequency',header=TRUE)
a<-table.element(a,'Cumul. Rel. Freq.',header=TRUE)
a<-table.element(a,'Density',header=TRUE)
a<-table.row.end(a)
crf <- 0
if (par3 == FALSE) mybracket <- '[' else mybracket <- ']'
mynumrows <- (length(myhist$breaks)-1)
for (i in 1:mynumrows) {
a<-table.row.start(a)
if (i == 1)
dum <- paste('[',myhist$breaks[i],sep='')
else
dum <- paste(mybracket,myhist$breaks[i],sep='')
dum <- paste(dum,myhist$breaks[i+1],sep=',')
if (i==mynumrows)
dum <- paste(dum,']',sep='')
else
dum <- paste(dum,mybracket,sep='')
a<-table.element(a,dum,header=TRUE)
a<-table.element(a,myhist$mids[i])
a<-table.element(a,myhist$counts[i])
rf <- myhist$counts[i]/n
crf <- crf + rf
a<-table.element(a,round(rf,6))
a<-table.element(a,round(crf,6))
a<-table.element(a,round(myhist$density[i],6))
a<-table.row.end(a)
}
a<-table.end(a)
table.save(a,file='mytable.tab')
} else {
mytab
reltab <- mytab / sum(mytab)
n <- length(mytab)
load(file='createtable')
a<-table.start()
a<-table.row.start(a)
a<-table.element(a,'Frequency Table (Categorical Data)',3,TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'Category',header=TRUE)
a<-table.element(a,'Abs. Frequency',header=TRUE)
a<-table.element(a,'Rel. Frequency',header=TRUE)
a<-table.row.end(a)
for (i in 1:n) {
a<-table.row.start(a)
a<-table.element(a,labels(mytab)$x[i],header=TRUE)
a<-table.element(a,mytab[i])
a<-table.element(a,round(reltab[i],4))
a<-table.row.end(a)
}
a<-table.end(a)
table.save(a,file='mytable1.tab')
}