Free Statistics

of Irreproducible Research!

Author's title

Author*The author of this computation has been verified*
R Software Modulerwasp_histogram.wasp
Title produced by softwareHistogram
Date of computationFri, 01 Oct 2010 15:06:43 +0000
Cite this page as followsStatistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?v=date/2010/Oct/01/t1285945589f5r3m51iox278na.htm/, Retrieved Thu, 28 Mar 2024 17:29:02 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=79887, Retrieved Thu, 28 Mar 2024 17:29:02 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact187
Family? (F = Feedback message, R = changed R code, M = changed R Module, P = changed Parameters, D = changed Data)
-     [Histogram] [Bad example of Hi...] [2010-09-25 09:28:23] [b98453cac15ba1066b407e146608df68]
- R PD    [Histogram] [Histogram] [2010-10-01 15:06:43] [985dc1be4332e19cbfb874db0b8f53d7] [Current]
F    D      [Histogram] [Histogram] [2010-10-01 16:56:28] [6bc4f9343b7ea3ef5a59412d1f72bb2b]
Feedback Forum

Post a new message
Dataseries X:
426113
383703
232444
70939
226731
947293
611281
158047
33999
37028
3883
506652
39225
180818
198296
217465
275562
1030944
5747
136452
556277
213361
274482
220553
23671
260642
2763544
213923
169861
403064
449594
406167
206893
156187
257102
62156
662883
251422
171328
350089
221588
4813
183186
190379
223166
232669
356725
109215
475834
315955
69487
895
278741
30816
207533
192797
601162
289714
293671
386688
699645
85094
131812
645285
197549
308174
8658
242205
238502
187881
140321
44031
421403
218761
1305923
13755
262517
348821
150034
64016
261596
2597
17126
203077
249148
211655
25264
438555
23989
401915
216886
184641
380155
653641
313906
366936
236302
229641
235577
103898
263906
241171
216548
295281
193299
204386
257567
136813
240755
59609
213511
380531
242344
250407
183613
191835
266793
246542
330563
403556
208108
32404
308532
199297
200156
262875
287069
190157
199746
265777
435956
72844
75646
206771
4202361
401422
216046
39047
441437




Summary of computational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time1 seconds
R Server'Gwilym Jenkins' @ 72.249.127.135

\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 & 'Gwilym Jenkins' @ 72.249.127.135 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=79887&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]'Gwilym Jenkins' @ 72.249.127.135[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=79887&T=0

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=79887&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'Gwilym Jenkins' @ 72.249.127.135







Frequency Table (Histogram)
BinsMidpointAbs. FrequencyRel. FrequencyCumul. Rel. Freq.Density
[0,1e+05[50000260.187050.187052e-06
[1e+05,2e+05[150000250.1798560.3669062e-06
[2e+05,3e+05[250000500.3597120.7266194e-06
[3e+05,4e+05[350000130.0935250.8201441e-06
[4e+05,5e+05[450000120.0863310.9064751e-06
[5e+05,6e+05[55000020.0143880.9208630
[6e+05,7e+05[65000060.0431650.9640290
[7e+05,8e+05[750000000.9640290
[8e+05,9e+05[850000000.9640290
[9e+05,1e+06[95000010.0071940.9712230
[1e+06,1100000[105000010.0071940.9784170
[1100000,1200000[1150000000.9784170
[1200000,1300000[1250000000.9784170
[1300000,1400000[135000010.0071940.9856120
[1400000,1500000[1450000000.9856120
[1500000,1600000[1550000000.9856120
[1600000,1700000[1650000000.9856120
[1700000,1800000[1750000000.9856120
[1800000,1900000[1850000000.9856120
[1900000,2e+06[1950000000.9856120
[2e+06,2100000[2050000000.9856120
[2100000,2200000[2150000000.9856120
[2200000,2300000[2250000000.9856120
[2300000,2400000[2350000000.9856120
[2400000,2500000[2450000000.9856120
[2500000,2600000[2550000000.9856120
[2600000,2700000[2650000000.9856120
[2700000,2800000[275000010.0071940.9928060
[2800000,2900000[2850000000.9928060
[2900000,3e+06[2950000000.9928060
[3e+06,3100000[3050000000.9928060
[3100000,3200000[3150000000.9928060
[3200000,3300000[3250000000.9928060
[3300000,3400000[3350000000.9928060
[3400000,3500000[3450000000.9928060
[3500000,3600000[3550000000.9928060
[3600000,3700000[3650000000.9928060
[3700000,3800000[3750000000.9928060
[3800000,3900000[3850000000.9928060
[3900000,4e+06[3950000000.9928060
[4e+06,4100000[4050000000.9928060
[4100000,4200000[4150000000.9928060
[4200000,4300000]425000010.00719410

\begin{tabular}{lllllllll}
\hline
Frequency Table (Histogram) \tabularnewline
Bins & Midpoint & Abs. Frequency & Rel. Frequency & Cumul. Rel. Freq. & Density \tabularnewline
[0,1e+05[ & 50000 & 26 & 0.18705 & 0.18705 & 2e-06 \tabularnewline
[1e+05,2e+05[ & 150000 & 25 & 0.179856 & 0.366906 & 2e-06 \tabularnewline
[2e+05,3e+05[ & 250000 & 50 & 0.359712 & 0.726619 & 4e-06 \tabularnewline
[3e+05,4e+05[ & 350000 & 13 & 0.093525 & 0.820144 & 1e-06 \tabularnewline
[4e+05,5e+05[ & 450000 & 12 & 0.086331 & 0.906475 & 1e-06 \tabularnewline
[5e+05,6e+05[ & 550000 & 2 & 0.014388 & 0.920863 & 0 \tabularnewline
[6e+05,7e+05[ & 650000 & 6 & 0.043165 & 0.964029 & 0 \tabularnewline
[7e+05,8e+05[ & 750000 & 0 & 0 & 0.964029 & 0 \tabularnewline
[8e+05,9e+05[ & 850000 & 0 & 0 & 0.964029 & 0 \tabularnewline
[9e+05,1e+06[ & 950000 & 1 & 0.007194 & 0.971223 & 0 \tabularnewline
[1e+06,1100000[ & 1050000 & 1 & 0.007194 & 0.978417 & 0 \tabularnewline
[1100000,1200000[ & 1150000 & 0 & 0 & 0.978417 & 0 \tabularnewline
[1200000,1300000[ & 1250000 & 0 & 0 & 0.978417 & 0 \tabularnewline
[1300000,1400000[ & 1350000 & 1 & 0.007194 & 0.985612 & 0 \tabularnewline
[1400000,1500000[ & 1450000 & 0 & 0 & 0.985612 & 0 \tabularnewline
[1500000,1600000[ & 1550000 & 0 & 0 & 0.985612 & 0 \tabularnewline
[1600000,1700000[ & 1650000 & 0 & 0 & 0.985612 & 0 \tabularnewline
[1700000,1800000[ & 1750000 & 0 & 0 & 0.985612 & 0 \tabularnewline
[1800000,1900000[ & 1850000 & 0 & 0 & 0.985612 & 0 \tabularnewline
[1900000,2e+06[ & 1950000 & 0 & 0 & 0.985612 & 0 \tabularnewline
[2e+06,2100000[ & 2050000 & 0 & 0 & 0.985612 & 0 \tabularnewline
[2100000,2200000[ & 2150000 & 0 & 0 & 0.985612 & 0 \tabularnewline
[2200000,2300000[ & 2250000 & 0 & 0 & 0.985612 & 0 \tabularnewline
[2300000,2400000[ & 2350000 & 0 & 0 & 0.985612 & 0 \tabularnewline
[2400000,2500000[ & 2450000 & 0 & 0 & 0.985612 & 0 \tabularnewline
[2500000,2600000[ & 2550000 & 0 & 0 & 0.985612 & 0 \tabularnewline
[2600000,2700000[ & 2650000 & 0 & 0 & 0.985612 & 0 \tabularnewline
[2700000,2800000[ & 2750000 & 1 & 0.007194 & 0.992806 & 0 \tabularnewline
[2800000,2900000[ & 2850000 & 0 & 0 & 0.992806 & 0 \tabularnewline
[2900000,3e+06[ & 2950000 & 0 & 0 & 0.992806 & 0 \tabularnewline
[3e+06,3100000[ & 3050000 & 0 & 0 & 0.992806 & 0 \tabularnewline
[3100000,3200000[ & 3150000 & 0 & 0 & 0.992806 & 0 \tabularnewline
[3200000,3300000[ & 3250000 & 0 & 0 & 0.992806 & 0 \tabularnewline
[3300000,3400000[ & 3350000 & 0 & 0 & 0.992806 & 0 \tabularnewline
[3400000,3500000[ & 3450000 & 0 & 0 & 0.992806 & 0 \tabularnewline
[3500000,3600000[ & 3550000 & 0 & 0 & 0.992806 & 0 \tabularnewline
[3600000,3700000[ & 3650000 & 0 & 0 & 0.992806 & 0 \tabularnewline
[3700000,3800000[ & 3750000 & 0 & 0 & 0.992806 & 0 \tabularnewline
[3800000,3900000[ & 3850000 & 0 & 0 & 0.992806 & 0 \tabularnewline
[3900000,4e+06[ & 3950000 & 0 & 0 & 0.992806 & 0 \tabularnewline
[4e+06,4100000[ & 4050000 & 0 & 0 & 0.992806 & 0 \tabularnewline
[4100000,4200000[ & 4150000 & 0 & 0 & 0.992806 & 0 \tabularnewline
[4200000,4300000] & 4250000 & 1 & 0.007194 & 1 & 0 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=79887&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][0,1e+05[[/C][C]50000[/C][C]26[/C][C]0.18705[/C][C]0.18705[/C][C]2e-06[/C][/ROW]
[ROW][C][1e+05,2e+05[[/C][C]150000[/C][C]25[/C][C]0.179856[/C][C]0.366906[/C][C]2e-06[/C][/ROW]
[ROW][C][2e+05,3e+05[[/C][C]250000[/C][C]50[/C][C]0.359712[/C][C]0.726619[/C][C]4e-06[/C][/ROW]
[ROW][C][3e+05,4e+05[[/C][C]350000[/C][C]13[/C][C]0.093525[/C][C]0.820144[/C][C]1e-06[/C][/ROW]
[ROW][C][4e+05,5e+05[[/C][C]450000[/C][C]12[/C][C]0.086331[/C][C]0.906475[/C][C]1e-06[/C][/ROW]
[ROW][C][5e+05,6e+05[[/C][C]550000[/C][C]2[/C][C]0.014388[/C][C]0.920863[/C][C]0[/C][/ROW]
[ROW][C][6e+05,7e+05[[/C][C]650000[/C][C]6[/C][C]0.043165[/C][C]0.964029[/C][C]0[/C][/ROW]
[ROW][C][7e+05,8e+05[[/C][C]750000[/C][C]0[/C][C]0[/C][C]0.964029[/C][C]0[/C][/ROW]
[ROW][C][8e+05,9e+05[[/C][C]850000[/C][C]0[/C][C]0[/C][C]0.964029[/C][C]0[/C][/ROW]
[ROW][C][9e+05,1e+06[[/C][C]950000[/C][C]1[/C][C]0.007194[/C][C]0.971223[/C][C]0[/C][/ROW]
[ROW][C][1e+06,1100000[[/C][C]1050000[/C][C]1[/C][C]0.007194[/C][C]0.978417[/C][C]0[/C][/ROW]
[ROW][C][1100000,1200000[[/C][C]1150000[/C][C]0[/C][C]0[/C][C]0.978417[/C][C]0[/C][/ROW]
[ROW][C][1200000,1300000[[/C][C]1250000[/C][C]0[/C][C]0[/C][C]0.978417[/C][C]0[/C][/ROW]
[ROW][C][1300000,1400000[[/C][C]1350000[/C][C]1[/C][C]0.007194[/C][C]0.985612[/C][C]0[/C][/ROW]
[ROW][C][1400000,1500000[[/C][C]1450000[/C][C]0[/C][C]0[/C][C]0.985612[/C][C]0[/C][/ROW]
[ROW][C][1500000,1600000[[/C][C]1550000[/C][C]0[/C][C]0[/C][C]0.985612[/C][C]0[/C][/ROW]
[ROW][C][1600000,1700000[[/C][C]1650000[/C][C]0[/C][C]0[/C][C]0.985612[/C][C]0[/C][/ROW]
[ROW][C][1700000,1800000[[/C][C]1750000[/C][C]0[/C][C]0[/C][C]0.985612[/C][C]0[/C][/ROW]
[ROW][C][1800000,1900000[[/C][C]1850000[/C][C]0[/C][C]0[/C][C]0.985612[/C][C]0[/C][/ROW]
[ROW][C][1900000,2e+06[[/C][C]1950000[/C][C]0[/C][C]0[/C][C]0.985612[/C][C]0[/C][/ROW]
[ROW][C][2e+06,2100000[[/C][C]2050000[/C][C]0[/C][C]0[/C][C]0.985612[/C][C]0[/C][/ROW]
[ROW][C][2100000,2200000[[/C][C]2150000[/C][C]0[/C][C]0[/C][C]0.985612[/C][C]0[/C][/ROW]
[ROW][C][2200000,2300000[[/C][C]2250000[/C][C]0[/C][C]0[/C][C]0.985612[/C][C]0[/C][/ROW]
[ROW][C][2300000,2400000[[/C][C]2350000[/C][C]0[/C][C]0[/C][C]0.985612[/C][C]0[/C][/ROW]
[ROW][C][2400000,2500000[[/C][C]2450000[/C][C]0[/C][C]0[/C][C]0.985612[/C][C]0[/C][/ROW]
[ROW][C][2500000,2600000[[/C][C]2550000[/C][C]0[/C][C]0[/C][C]0.985612[/C][C]0[/C][/ROW]
[ROW][C][2600000,2700000[[/C][C]2650000[/C][C]0[/C][C]0[/C][C]0.985612[/C][C]0[/C][/ROW]
[ROW][C][2700000,2800000[[/C][C]2750000[/C][C]1[/C][C]0.007194[/C][C]0.992806[/C][C]0[/C][/ROW]
[ROW][C][2800000,2900000[[/C][C]2850000[/C][C]0[/C][C]0[/C][C]0.992806[/C][C]0[/C][/ROW]
[ROW][C][2900000,3e+06[[/C][C]2950000[/C][C]0[/C][C]0[/C][C]0.992806[/C][C]0[/C][/ROW]
[ROW][C][3e+06,3100000[[/C][C]3050000[/C][C]0[/C][C]0[/C][C]0.992806[/C][C]0[/C][/ROW]
[ROW][C][3100000,3200000[[/C][C]3150000[/C][C]0[/C][C]0[/C][C]0.992806[/C][C]0[/C][/ROW]
[ROW][C][3200000,3300000[[/C][C]3250000[/C][C]0[/C][C]0[/C][C]0.992806[/C][C]0[/C][/ROW]
[ROW][C][3300000,3400000[[/C][C]3350000[/C][C]0[/C][C]0[/C][C]0.992806[/C][C]0[/C][/ROW]
[ROW][C][3400000,3500000[[/C][C]3450000[/C][C]0[/C][C]0[/C][C]0.992806[/C][C]0[/C][/ROW]
[ROW][C][3500000,3600000[[/C][C]3550000[/C][C]0[/C][C]0[/C][C]0.992806[/C][C]0[/C][/ROW]
[ROW][C][3600000,3700000[[/C][C]3650000[/C][C]0[/C][C]0[/C][C]0.992806[/C][C]0[/C][/ROW]
[ROW][C][3700000,3800000[[/C][C]3750000[/C][C]0[/C][C]0[/C][C]0.992806[/C][C]0[/C][/ROW]
[ROW][C][3800000,3900000[[/C][C]3850000[/C][C]0[/C][C]0[/C][C]0.992806[/C][C]0[/C][/ROW]
[ROW][C][3900000,4e+06[[/C][C]3950000[/C][C]0[/C][C]0[/C][C]0.992806[/C][C]0[/C][/ROW]
[ROW][C][4e+06,4100000[[/C][C]4050000[/C][C]0[/C][C]0[/C][C]0.992806[/C][C]0[/C][/ROW]
[ROW][C][4100000,4200000[[/C][C]4150000[/C][C]0[/C][C]0[/C][C]0.992806[/C][C]0[/C][/ROW]
[ROW][C][4200000,4300000][/C][C]4250000[/C][C]1[/C][C]0.007194[/C][C]1[/C][C]0[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=79887&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=79887&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
[0,1e+05[50000260.187050.187052e-06
[1e+05,2e+05[150000250.1798560.3669062e-06
[2e+05,3e+05[250000500.3597120.7266194e-06
[3e+05,4e+05[350000130.0935250.8201441e-06
[4e+05,5e+05[450000120.0863310.9064751e-06
[5e+05,6e+05[55000020.0143880.9208630
[6e+05,7e+05[65000060.0431650.9640290
[7e+05,8e+05[750000000.9640290
[8e+05,9e+05[850000000.9640290
[9e+05,1e+06[95000010.0071940.9712230
[1e+06,1100000[105000010.0071940.9784170
[1100000,1200000[1150000000.9784170
[1200000,1300000[1250000000.9784170
[1300000,1400000[135000010.0071940.9856120
[1400000,1500000[1450000000.9856120
[1500000,1600000[1550000000.9856120
[1600000,1700000[1650000000.9856120
[1700000,1800000[1750000000.9856120
[1800000,1900000[1850000000.9856120
[1900000,2e+06[1950000000.9856120
[2e+06,2100000[2050000000.9856120
[2100000,2200000[2150000000.9856120
[2200000,2300000[2250000000.9856120
[2300000,2400000[2350000000.9856120
[2400000,2500000[2450000000.9856120
[2500000,2600000[2550000000.9856120
[2600000,2700000[2650000000.9856120
[2700000,2800000[275000010.0071940.9928060
[2800000,2900000[2850000000.9928060
[2900000,3e+06[2950000000.9928060
[3e+06,3100000[3050000000.9928060
[3100000,3200000[3150000000.9928060
[3200000,3300000[3250000000.9928060
[3300000,3400000[3350000000.9928060
[3400000,3500000[3450000000.9928060
[3500000,3600000[3550000000.9928060
[3600000,3700000[3650000000.9928060
[3700000,3800000[3750000000.9928060
[3800000,3900000[3850000000.9928060
[3900000,4e+06[3950000000.9928060
[4e+06,4100000[4050000000.9928060
[4100000,4200000[4150000000.9928060
[4200000,4300000]425000010.00719410



Parameters (Session):
par1 = 100 ; par2 = grey ; par3 = FALSE ; par4 = Unknown ;
Parameters (R input):
par1 = 100 ; par2 = grey ; 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')
}