Free Statistics

of Irreproducible Research!

Author's title

Author*Unverified author*
R Software Modulerwasp_histogram.wasp
Title produced by softwareHistogram
Date of computationWed, 11 Jul 2012 17:49: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/2012/Jul/11/t1342043487i31696o6eq64hh0.htm/, Retrieved Mon, 29 Apr 2024 03:32:46 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=168768, Retrieved Mon, 29 Apr 2024 03:32:46 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact226
Family? (F = Feedback message, R = changed R code, M = changed R Module, P = changed Parameters, D = changed Data)
-       [Histogram] [tu berlin lina1 k...] [2012-07-11 21:49:14] [d41d8cd98f00b204e9800998ecf8427e] [Current]
- R PD    [Histogram] [Ana1 für Mathe Kl...] [2012-07-17 14:02:39] [74be16979710d4c4e7c6647856088456]
- R PD    [Histogram] [Ana1MathSS12 Klau...] [2012-07-17 14:33:20] [74be16979710d4c4e7c6647856088456]
- R PD      [Histogram] [Klausurergebnisse...] [2013-03-07 15:10:29] [74be16979710d4c4e7c6647856088456]
- R PD      [Histogram] [Klausurergebnisse...] [2013-03-07 15:52:30] [74be16979710d4c4e7c6647856088456]
- R  D    [Histogram] [TU Berlin CoMa-Mo...] [2013-07-24 20:15:30] [74be16979710d4c4e7c6647856088456]
- R PD      [Histogram] [TU Berlin CoMa-Mo...] [2013-07-24 20:27:08] [74be16979710d4c4e7c6647856088456]
- R  D    [Histogram] [LinA-Modulprüfung...] [2013-08-17 15:03:25] [74be16979710d4c4e7c6647856088456]
- R  D    [Histogram] [Ergebnisse Modulk...] [2013-09-24 18:06:22] [74be16979710d4c4e7c6647856088456]
-   PD      [Histogram] [TU WS2013/14 Nume...] [2014-02-20 09:07:22] [74be16979710d4c4e7c6647856088456]
-   PD        [Histogram] [NumMath1-Modulkla...] [2014-02-20 09:28:44] [74be16979710d4c4e7c6647856088456]
-               [Histogram] [NumMath1-Modulkla...] [2014-02-20 09:40:05] [74be16979710d4c4e7c6647856088456]
-               [Histogram] [NumMath1-Modulkla...] [2014-02-20 09:40:05] [74be16979710d4c4e7c6647856088456]
-    D            [Histogram] [NumMath1-Modulkla...] [2014-04-04 15:20:24] [74be16979710d4c4e7c6647856088456]
-    D              [Histogram] [Noten Juli-Klausu...] [2014-07-24 02:44:35] [74be16979710d4c4e7c6647856088456]
-    D          [Histogram] [Modulklausur ADM ...] [2014-03-10 14:19:19] [74be16979710d4c4e7c6647856088456]
Feedback Forum

Post a new message
Dataseries X:
44.5
33.5
10.5
36
34
11.5
12.5
22.0
26
18.5
36
34
12.5
24.5
18.5
32.5
29
17.5
25.5
28.5
23.5
18.5
31.5
11
13.5
20.5
37.5
31.5
25.5
26
27.5
28
23.5
22.0
31
15.5
29.5
30
21.0
28
9.5
16.5
22.0
32.5
27.5
23.5
23.5
17.5
12
23.5
25.5
17.5
27
27.5
30
27
18.5
20.0
21.0
27.5
26.5
27
20.0
5
34
14.5
22.5
23.5
27
40
31
24.5
19.5
12
37.5
17
26
16
17.5
9
29.5
16
25
15.5
23.5
15
31.5
16
24.5
10
16.5
37
35
27
23.5
35
25.5
10.5
8.5
29.5
17.5
37
13.5
24.0
30
36




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

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=168768&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 time1 seconds
R Server'AstonUniversity' @ aston.wessa.net







Frequency Table (Histogram)
BinsMidpointAbs. FrequencyRel. FrequencyCumul. Rel. Freq.Density
[5,6[5.510.0094340.0094340.009434
[6,7[6.5000.0094340
[7,8[7.5000.0094340
[8,9[8.510.0094340.0188680.009434
[9,10[9.520.0188680.0377360.018868
[10,11[10.530.0283020.0660380.028302
[11,12[11.520.0188680.0849060.018868
[12,13[12.540.0377360.1226420.037736
[13,14[13.520.0188680.1415090.018868
[14,15[14.510.0094340.1509430.009434
[15,16[15.530.0283020.1792450.028302
[16,17[16.550.047170.2264150.04717
[17,18[17.560.0566040.2830190.056604
[18,19[18.540.0377360.3207550.037736
[19,20[19.510.0094340.3301890.009434
[20,21[20.530.0283020.3584910.028302
[21,22[21.520.0188680.3773580.018868
[22,23[22.540.0377360.4150940.037736
[23,24[23.580.0754720.4905660.075472
[24,25[24.540.0377360.5283020.037736
[25,26[25.550.047170.5754720.04717
[26,27[26.540.0377360.6132080.037736
[27,28[27.590.0849060.6981130.084906
[28,29[28.530.0283020.7264150.028302
[29,30[29.540.0377360.7641510.037736
[30,31[30.530.0283020.7924530.028302
[31,32[31.550.047170.8396230.04717
[32,33[32.520.0188680.8584910.018868
[33,34[33.510.0094340.8679250.009434
[34,35[34.530.0283020.8962260.028302
[35,36[35.520.0188680.9150940.018868
[36,37[36.530.0283020.9433960.028302
[37,38[37.540.0377360.9811320.037736
[38,39[38.5000.9811320
[39,40[39.5000.9811320
[40,41[40.510.0094340.9905660.009434
[41,42[41.5000.9905660
[42,43[42.5000.9905660
[43,44[43.5000.9905660
[44,45]44.510.00943410.009434

\begin{tabular}{lllllllll}
\hline
Frequency Table (Histogram) \tabularnewline
Bins & Midpoint & Abs. Frequency & Rel. Frequency & Cumul. Rel. Freq. & Density \tabularnewline
[5,6[ & 5.5 & 1 & 0.009434 & 0.009434 & 0.009434 \tabularnewline
[6,7[ & 6.5 & 0 & 0 & 0.009434 & 0 \tabularnewline
[7,8[ & 7.5 & 0 & 0 & 0.009434 & 0 \tabularnewline
[8,9[ & 8.5 & 1 & 0.009434 & 0.018868 & 0.009434 \tabularnewline
[9,10[ & 9.5 & 2 & 0.018868 & 0.037736 & 0.018868 \tabularnewline
[10,11[ & 10.5 & 3 & 0.028302 & 0.066038 & 0.028302 \tabularnewline
[11,12[ & 11.5 & 2 & 0.018868 & 0.084906 & 0.018868 \tabularnewline
[12,13[ & 12.5 & 4 & 0.037736 & 0.122642 & 0.037736 \tabularnewline
[13,14[ & 13.5 & 2 & 0.018868 & 0.141509 & 0.018868 \tabularnewline
[14,15[ & 14.5 & 1 & 0.009434 & 0.150943 & 0.009434 \tabularnewline
[15,16[ & 15.5 & 3 & 0.028302 & 0.179245 & 0.028302 \tabularnewline
[16,17[ & 16.5 & 5 & 0.04717 & 0.226415 & 0.04717 \tabularnewline
[17,18[ & 17.5 & 6 & 0.056604 & 0.283019 & 0.056604 \tabularnewline
[18,19[ & 18.5 & 4 & 0.037736 & 0.320755 & 0.037736 \tabularnewline
[19,20[ & 19.5 & 1 & 0.009434 & 0.330189 & 0.009434 \tabularnewline
[20,21[ & 20.5 & 3 & 0.028302 & 0.358491 & 0.028302 \tabularnewline
[21,22[ & 21.5 & 2 & 0.018868 & 0.377358 & 0.018868 \tabularnewline
[22,23[ & 22.5 & 4 & 0.037736 & 0.415094 & 0.037736 \tabularnewline
[23,24[ & 23.5 & 8 & 0.075472 & 0.490566 & 0.075472 \tabularnewline
[24,25[ & 24.5 & 4 & 0.037736 & 0.528302 & 0.037736 \tabularnewline
[25,26[ & 25.5 & 5 & 0.04717 & 0.575472 & 0.04717 \tabularnewline
[26,27[ & 26.5 & 4 & 0.037736 & 0.613208 & 0.037736 \tabularnewline
[27,28[ & 27.5 & 9 & 0.084906 & 0.698113 & 0.084906 \tabularnewline
[28,29[ & 28.5 & 3 & 0.028302 & 0.726415 & 0.028302 \tabularnewline
[29,30[ & 29.5 & 4 & 0.037736 & 0.764151 & 0.037736 \tabularnewline
[30,31[ & 30.5 & 3 & 0.028302 & 0.792453 & 0.028302 \tabularnewline
[31,32[ & 31.5 & 5 & 0.04717 & 0.839623 & 0.04717 \tabularnewline
[32,33[ & 32.5 & 2 & 0.018868 & 0.858491 & 0.018868 \tabularnewline
[33,34[ & 33.5 & 1 & 0.009434 & 0.867925 & 0.009434 \tabularnewline
[34,35[ & 34.5 & 3 & 0.028302 & 0.896226 & 0.028302 \tabularnewline
[35,36[ & 35.5 & 2 & 0.018868 & 0.915094 & 0.018868 \tabularnewline
[36,37[ & 36.5 & 3 & 0.028302 & 0.943396 & 0.028302 \tabularnewline
[37,38[ & 37.5 & 4 & 0.037736 & 0.981132 & 0.037736 \tabularnewline
[38,39[ & 38.5 & 0 & 0 & 0.981132 & 0 \tabularnewline
[39,40[ & 39.5 & 0 & 0 & 0.981132 & 0 \tabularnewline
[40,41[ & 40.5 & 1 & 0.009434 & 0.990566 & 0.009434 \tabularnewline
[41,42[ & 41.5 & 0 & 0 & 0.990566 & 0 \tabularnewline
[42,43[ & 42.5 & 0 & 0 & 0.990566 & 0 \tabularnewline
[43,44[ & 43.5 & 0 & 0 & 0.990566 & 0 \tabularnewline
[44,45] & 44.5 & 1 & 0.009434 & 1 & 0.009434 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=168768&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][5,6[[/C][C]5.5[/C][C]1[/C][C]0.009434[/C][C]0.009434[/C][C]0.009434[/C][/ROW]
[ROW][C][6,7[[/C][C]6.5[/C][C]0[/C][C]0[/C][C]0.009434[/C][C]0[/C][/ROW]
[ROW][C][7,8[[/C][C]7.5[/C][C]0[/C][C]0[/C][C]0.009434[/C][C]0[/C][/ROW]
[ROW][C][8,9[[/C][C]8.5[/C][C]1[/C][C]0.009434[/C][C]0.018868[/C][C]0.009434[/C][/ROW]
[ROW][C][9,10[[/C][C]9.5[/C][C]2[/C][C]0.018868[/C][C]0.037736[/C][C]0.018868[/C][/ROW]
[ROW][C][10,11[[/C][C]10.5[/C][C]3[/C][C]0.028302[/C][C]0.066038[/C][C]0.028302[/C][/ROW]
[ROW][C][11,12[[/C][C]11.5[/C][C]2[/C][C]0.018868[/C][C]0.084906[/C][C]0.018868[/C][/ROW]
[ROW][C][12,13[[/C][C]12.5[/C][C]4[/C][C]0.037736[/C][C]0.122642[/C][C]0.037736[/C][/ROW]
[ROW][C][13,14[[/C][C]13.5[/C][C]2[/C][C]0.018868[/C][C]0.141509[/C][C]0.018868[/C][/ROW]
[ROW][C][14,15[[/C][C]14.5[/C][C]1[/C][C]0.009434[/C][C]0.150943[/C][C]0.009434[/C][/ROW]
[ROW][C][15,16[[/C][C]15.5[/C][C]3[/C][C]0.028302[/C][C]0.179245[/C][C]0.028302[/C][/ROW]
[ROW][C][16,17[[/C][C]16.5[/C][C]5[/C][C]0.04717[/C][C]0.226415[/C][C]0.04717[/C][/ROW]
[ROW][C][17,18[[/C][C]17.5[/C][C]6[/C][C]0.056604[/C][C]0.283019[/C][C]0.056604[/C][/ROW]
[ROW][C][18,19[[/C][C]18.5[/C][C]4[/C][C]0.037736[/C][C]0.320755[/C][C]0.037736[/C][/ROW]
[ROW][C][19,20[[/C][C]19.5[/C][C]1[/C][C]0.009434[/C][C]0.330189[/C][C]0.009434[/C][/ROW]
[ROW][C][20,21[[/C][C]20.5[/C][C]3[/C][C]0.028302[/C][C]0.358491[/C][C]0.028302[/C][/ROW]
[ROW][C][21,22[[/C][C]21.5[/C][C]2[/C][C]0.018868[/C][C]0.377358[/C][C]0.018868[/C][/ROW]
[ROW][C][22,23[[/C][C]22.5[/C][C]4[/C][C]0.037736[/C][C]0.415094[/C][C]0.037736[/C][/ROW]
[ROW][C][23,24[[/C][C]23.5[/C][C]8[/C][C]0.075472[/C][C]0.490566[/C][C]0.075472[/C][/ROW]
[ROW][C][24,25[[/C][C]24.5[/C][C]4[/C][C]0.037736[/C][C]0.528302[/C][C]0.037736[/C][/ROW]
[ROW][C][25,26[[/C][C]25.5[/C][C]5[/C][C]0.04717[/C][C]0.575472[/C][C]0.04717[/C][/ROW]
[ROW][C][26,27[[/C][C]26.5[/C][C]4[/C][C]0.037736[/C][C]0.613208[/C][C]0.037736[/C][/ROW]
[ROW][C][27,28[[/C][C]27.5[/C][C]9[/C][C]0.084906[/C][C]0.698113[/C][C]0.084906[/C][/ROW]
[ROW][C][28,29[[/C][C]28.5[/C][C]3[/C][C]0.028302[/C][C]0.726415[/C][C]0.028302[/C][/ROW]
[ROW][C][29,30[[/C][C]29.5[/C][C]4[/C][C]0.037736[/C][C]0.764151[/C][C]0.037736[/C][/ROW]
[ROW][C][30,31[[/C][C]30.5[/C][C]3[/C][C]0.028302[/C][C]0.792453[/C][C]0.028302[/C][/ROW]
[ROW][C][31,32[[/C][C]31.5[/C][C]5[/C][C]0.04717[/C][C]0.839623[/C][C]0.04717[/C][/ROW]
[ROW][C][32,33[[/C][C]32.5[/C][C]2[/C][C]0.018868[/C][C]0.858491[/C][C]0.018868[/C][/ROW]
[ROW][C][33,34[[/C][C]33.5[/C][C]1[/C][C]0.009434[/C][C]0.867925[/C][C]0.009434[/C][/ROW]
[ROW][C][34,35[[/C][C]34.5[/C][C]3[/C][C]0.028302[/C][C]0.896226[/C][C]0.028302[/C][/ROW]
[ROW][C][35,36[[/C][C]35.5[/C][C]2[/C][C]0.018868[/C][C]0.915094[/C][C]0.018868[/C][/ROW]
[ROW][C][36,37[[/C][C]36.5[/C][C]3[/C][C]0.028302[/C][C]0.943396[/C][C]0.028302[/C][/ROW]
[ROW][C][37,38[[/C][C]37.5[/C][C]4[/C][C]0.037736[/C][C]0.981132[/C][C]0.037736[/C][/ROW]
[ROW][C][38,39[[/C][C]38.5[/C][C]0[/C][C]0[/C][C]0.981132[/C][C]0[/C][/ROW]
[ROW][C][39,40[[/C][C]39.5[/C][C]0[/C][C]0[/C][C]0.981132[/C][C]0[/C][/ROW]
[ROW][C][40,41[[/C][C]40.5[/C][C]1[/C][C]0.009434[/C][C]0.990566[/C][C]0.009434[/C][/ROW]
[ROW][C][41,42[[/C][C]41.5[/C][C]0[/C][C]0[/C][C]0.990566[/C][C]0[/C][/ROW]
[ROW][C][42,43[[/C][C]42.5[/C][C]0[/C][C]0[/C][C]0.990566[/C][C]0[/C][/ROW]
[ROW][C][43,44[[/C][C]43.5[/C][C]0[/C][C]0[/C][C]0.990566[/C][C]0[/C][/ROW]
[ROW][C][44,45][/C][C]44.5[/C][C]1[/C][C]0.009434[/C][C]1[/C][C]0.009434[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=168768&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=168768&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
[5,6[5.510.0094340.0094340.009434
[6,7[6.5000.0094340
[7,8[7.5000.0094340
[8,9[8.510.0094340.0188680.009434
[9,10[9.520.0188680.0377360.018868
[10,11[10.530.0283020.0660380.028302
[11,12[11.520.0188680.0849060.018868
[12,13[12.540.0377360.1226420.037736
[13,14[13.520.0188680.1415090.018868
[14,15[14.510.0094340.1509430.009434
[15,16[15.530.0283020.1792450.028302
[16,17[16.550.047170.2264150.04717
[17,18[17.560.0566040.2830190.056604
[18,19[18.540.0377360.3207550.037736
[19,20[19.510.0094340.3301890.009434
[20,21[20.530.0283020.3584910.028302
[21,22[21.520.0188680.3773580.018868
[22,23[22.540.0377360.4150940.037736
[23,24[23.580.0754720.4905660.075472
[24,25[24.540.0377360.5283020.037736
[25,26[25.550.047170.5754720.04717
[26,27[26.540.0377360.6132080.037736
[27,28[27.590.0849060.6981130.084906
[28,29[28.530.0283020.7264150.028302
[29,30[29.540.0377360.7641510.037736
[30,31[30.530.0283020.7924530.028302
[31,32[31.550.047170.8396230.04717
[32,33[32.520.0188680.8584910.018868
[33,34[33.510.0094340.8679250.009434
[34,35[34.530.0283020.8962260.028302
[35,36[35.520.0188680.9150940.018868
[36,37[36.530.0283020.9433960.028302
[37,38[37.540.0377360.9811320.037736
[38,39[38.5000.9811320
[39,40[39.5000.9811320
[40,41[40.510.0094340.9905660.009434
[41,42[41.5000.9905660
[42,43[42.5000.9905660
[43,44[43.5000.9905660
[44,45]44.510.00943410.009434



Parameters (Session):
par1 = 50 ; par2 = red ; par3 = FALSE ; par4 = Unknown ;
Parameters (R input):
par1 = 50 ; par2 = red ; par3 = FALSE ; par4 = Unknown ;
R code (references can be found in the software module):
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')
}