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 computationWed, 29 Sep 2010 16:12:21 +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/Sep/29/t128577700428jv6t6q916bbl1.htm/, Retrieved Fri, 29 Mar 2024 12:40:05 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=79664, Retrieved Fri, 29 Mar 2024 12:40:05 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact239
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]
-   PD    [Histogram] [task 3] [2010-09-29 16:12:21] [885a9dbaf162325773a0a0afdf9f947e] [Current]
-           [Histogram] [Task 3] [2010-09-29 16:21:36] [c4580079d5d2b3f0ba412f27cdc441be]
- RMPD      [Mean versus Median] [task 4] [2010-09-29 16:46:38] [c4580079d5d2b3f0ba412f27cdc441be]
Feedback Forum

Post a new message
Dataseries X:
137.55
171.26
236.71
239.89
252.64
259.7
308.16
324.04
388.3
392.25
440.31
57.47
694.87
756.46
8.95
86.58
4.813
33.999
37.028
39.047
59.609
62.156
64.016
70.939
72.844
85.094
103.898
109.215
131.812
136.452
136.813
140.321
150.034
156.187
158.047
169.861
171.328
180.818
183.186
183.613
184.641
187.881
190.157
190.379
191.835
192.797
193.299
197.549
198.296
199.297
199.746
200.156
203.077
204.386
206.771
206.893
207.533
208.108
211.655
213.361
213.511
213.923
216.046
216.548
216.886
217.465
218.761
220.553
221.588
223.166
226.731
229.641
232.444
232.669
235.577
236.302
238.502
240.755
241.171
242.205
242.344
246.542
249.148
250.407
251.422
257.102
257.567
260.642
261.596
262.517
262.875
263.906
265.777
266.793
274.482
275.562
278.741
287.069
289.714
293.671
295.281
308.174
308.532
313.906
315.955
330.563
348.821
350.089
356.725
366.936
380.155
380.531
383.703
386.688
401.422
401.915
403.064
403.556
406.167
421.403
426.113
435.956
438.555
441.437
449.594
475.834
506.652
556.277
601.162
611.281
645.285
653.641
662.883
699.645
947.293
1.030.944
1.305.923
2.763.544
4.202.361




Summary of computational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time2 seconds
R Server'George Udny Yule' @ 72.249.76.132

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

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=79664&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'George Udny Yule' @ 72.249.76.132







Frequency Table (Histogram)
BinsMidpointAbs. FrequencyRel. FrequencyCumul. Rel. Freq.Density
[0,20[1020.0148150.0148150.000741
[20,40[3030.0222220.0370370.001111
[40,60[5020.0148150.0518520.000741
[60,80[7040.029630.0814810.001481
[80,100[9020.0148150.0962960.000741
[100,120[11020.0148150.1111110.000741
[120,140[13040.029630.1407410.001481
[140,160[15040.029630.170370.001481
[160,180[17030.0222220.1925930.001111
[180,200[190140.1037040.2962960.005185
[200,220[210160.1185190.4148150.005926
[220,240[230120.0888890.5037040.004444
[240,260[250120.0888890.5925930.004444
[260,280[270100.0740740.6666670.003704
[280,300[29040.029630.6962960.001481
[300,320[31050.0370370.7333330.001852
[320,340[33020.0148150.7481480.000741
[340,360[35030.0222220.770370.001111
[360,380[37010.0074070.7777780.00037
[380,400[39060.0444440.8222220.002222
[400,420[41050.0370370.8592590.001852
[420,440[43040.029630.8888890.001481
[440,460[45030.0222220.9111110.001111
[460,480[47010.0074070.9185190.00037
[480,500[490000.9185190
[500,520[51010.0074070.9259260.00037
[520,540[530000.9259260
[540,560[55010.0074070.9333330.00037
[560,580[570000.9333330
[580,600[590000.9333330
[600,620[61020.0148150.9481480.000741
[620,640[630000.9481480
[640,660[65020.0148150.9629630.000741
[660,680[67010.0074070.970370.00037
[680,700[69020.0148150.9851850.000741
[700,720[710000.9851850
[720,740[730000.9851850
[740,760[75010.0074070.9925930.00037
[760,780[770000.9925930
[780,800[790000.9925930
[800,820[810000.9925930
[820,840[830000.9925930
[840,860[850000.9925930
[860,880[870000.9925930
[880,900[890000.9925930
[900,920[910000.9925930
[920,940[930000.9925930
[940,960]95010.00740710.00037

\begin{tabular}{lllllllll}
\hline
Frequency Table (Histogram) \tabularnewline
Bins & Midpoint & Abs. Frequency & Rel. Frequency & Cumul. Rel. Freq. & Density \tabularnewline
[0,20[ & 10 & 2 & 0.014815 & 0.014815 & 0.000741 \tabularnewline
[20,40[ & 30 & 3 & 0.022222 & 0.037037 & 0.001111 \tabularnewline
[40,60[ & 50 & 2 & 0.014815 & 0.051852 & 0.000741 \tabularnewline
[60,80[ & 70 & 4 & 0.02963 & 0.081481 & 0.001481 \tabularnewline
[80,100[ & 90 & 2 & 0.014815 & 0.096296 & 0.000741 \tabularnewline
[100,120[ & 110 & 2 & 0.014815 & 0.111111 & 0.000741 \tabularnewline
[120,140[ & 130 & 4 & 0.02963 & 0.140741 & 0.001481 \tabularnewline
[140,160[ & 150 & 4 & 0.02963 & 0.17037 & 0.001481 \tabularnewline
[160,180[ & 170 & 3 & 0.022222 & 0.192593 & 0.001111 \tabularnewline
[180,200[ & 190 & 14 & 0.103704 & 0.296296 & 0.005185 \tabularnewline
[200,220[ & 210 & 16 & 0.118519 & 0.414815 & 0.005926 \tabularnewline
[220,240[ & 230 & 12 & 0.088889 & 0.503704 & 0.004444 \tabularnewline
[240,260[ & 250 & 12 & 0.088889 & 0.592593 & 0.004444 \tabularnewline
[260,280[ & 270 & 10 & 0.074074 & 0.666667 & 0.003704 \tabularnewline
[280,300[ & 290 & 4 & 0.02963 & 0.696296 & 0.001481 \tabularnewline
[300,320[ & 310 & 5 & 0.037037 & 0.733333 & 0.001852 \tabularnewline
[320,340[ & 330 & 2 & 0.014815 & 0.748148 & 0.000741 \tabularnewline
[340,360[ & 350 & 3 & 0.022222 & 0.77037 & 0.001111 \tabularnewline
[360,380[ & 370 & 1 & 0.007407 & 0.777778 & 0.00037 \tabularnewline
[380,400[ & 390 & 6 & 0.044444 & 0.822222 & 0.002222 \tabularnewline
[400,420[ & 410 & 5 & 0.037037 & 0.859259 & 0.001852 \tabularnewline
[420,440[ & 430 & 4 & 0.02963 & 0.888889 & 0.001481 \tabularnewline
[440,460[ & 450 & 3 & 0.022222 & 0.911111 & 0.001111 \tabularnewline
[460,480[ & 470 & 1 & 0.007407 & 0.918519 & 0.00037 \tabularnewline
[480,500[ & 490 & 0 & 0 & 0.918519 & 0 \tabularnewline
[500,520[ & 510 & 1 & 0.007407 & 0.925926 & 0.00037 \tabularnewline
[520,540[ & 530 & 0 & 0 & 0.925926 & 0 \tabularnewline
[540,560[ & 550 & 1 & 0.007407 & 0.933333 & 0.00037 \tabularnewline
[560,580[ & 570 & 0 & 0 & 0.933333 & 0 \tabularnewline
[580,600[ & 590 & 0 & 0 & 0.933333 & 0 \tabularnewline
[600,620[ & 610 & 2 & 0.014815 & 0.948148 & 0.000741 \tabularnewline
[620,640[ & 630 & 0 & 0 & 0.948148 & 0 \tabularnewline
[640,660[ & 650 & 2 & 0.014815 & 0.962963 & 0.000741 \tabularnewline
[660,680[ & 670 & 1 & 0.007407 & 0.97037 & 0.00037 \tabularnewline
[680,700[ & 690 & 2 & 0.014815 & 0.985185 & 0.000741 \tabularnewline
[700,720[ & 710 & 0 & 0 & 0.985185 & 0 \tabularnewline
[720,740[ & 730 & 0 & 0 & 0.985185 & 0 \tabularnewline
[740,760[ & 750 & 1 & 0.007407 & 0.992593 & 0.00037 \tabularnewline
[760,780[ & 770 & 0 & 0 & 0.992593 & 0 \tabularnewline
[780,800[ & 790 & 0 & 0 & 0.992593 & 0 \tabularnewline
[800,820[ & 810 & 0 & 0 & 0.992593 & 0 \tabularnewline
[820,840[ & 830 & 0 & 0 & 0.992593 & 0 \tabularnewline
[840,860[ & 850 & 0 & 0 & 0.992593 & 0 \tabularnewline
[860,880[ & 870 & 0 & 0 & 0.992593 & 0 \tabularnewline
[880,900[ & 890 & 0 & 0 & 0.992593 & 0 \tabularnewline
[900,920[ & 910 & 0 & 0 & 0.992593 & 0 \tabularnewline
[920,940[ & 930 & 0 & 0 & 0.992593 & 0 \tabularnewline
[940,960] & 950 & 1 & 0.007407 & 1 & 0.00037 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=79664&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,20[[/C][C]10[/C][C]2[/C][C]0.014815[/C][C]0.014815[/C][C]0.000741[/C][/ROW]
[ROW][C][20,40[[/C][C]30[/C][C]3[/C][C]0.022222[/C][C]0.037037[/C][C]0.001111[/C][/ROW]
[ROW][C][40,60[[/C][C]50[/C][C]2[/C][C]0.014815[/C][C]0.051852[/C][C]0.000741[/C][/ROW]
[ROW][C][60,80[[/C][C]70[/C][C]4[/C][C]0.02963[/C][C]0.081481[/C][C]0.001481[/C][/ROW]
[ROW][C][80,100[[/C][C]90[/C][C]2[/C][C]0.014815[/C][C]0.096296[/C][C]0.000741[/C][/ROW]
[ROW][C][100,120[[/C][C]110[/C][C]2[/C][C]0.014815[/C][C]0.111111[/C][C]0.000741[/C][/ROW]
[ROW][C][120,140[[/C][C]130[/C][C]4[/C][C]0.02963[/C][C]0.140741[/C][C]0.001481[/C][/ROW]
[ROW][C][140,160[[/C][C]150[/C][C]4[/C][C]0.02963[/C][C]0.17037[/C][C]0.001481[/C][/ROW]
[ROW][C][160,180[[/C][C]170[/C][C]3[/C][C]0.022222[/C][C]0.192593[/C][C]0.001111[/C][/ROW]
[ROW][C][180,200[[/C][C]190[/C][C]14[/C][C]0.103704[/C][C]0.296296[/C][C]0.005185[/C][/ROW]
[ROW][C][200,220[[/C][C]210[/C][C]16[/C][C]0.118519[/C][C]0.414815[/C][C]0.005926[/C][/ROW]
[ROW][C][220,240[[/C][C]230[/C][C]12[/C][C]0.088889[/C][C]0.503704[/C][C]0.004444[/C][/ROW]
[ROW][C][240,260[[/C][C]250[/C][C]12[/C][C]0.088889[/C][C]0.592593[/C][C]0.004444[/C][/ROW]
[ROW][C][260,280[[/C][C]270[/C][C]10[/C][C]0.074074[/C][C]0.666667[/C][C]0.003704[/C][/ROW]
[ROW][C][280,300[[/C][C]290[/C][C]4[/C][C]0.02963[/C][C]0.696296[/C][C]0.001481[/C][/ROW]
[ROW][C][300,320[[/C][C]310[/C][C]5[/C][C]0.037037[/C][C]0.733333[/C][C]0.001852[/C][/ROW]
[ROW][C][320,340[[/C][C]330[/C][C]2[/C][C]0.014815[/C][C]0.748148[/C][C]0.000741[/C][/ROW]
[ROW][C][340,360[[/C][C]350[/C][C]3[/C][C]0.022222[/C][C]0.77037[/C][C]0.001111[/C][/ROW]
[ROW][C][360,380[[/C][C]370[/C][C]1[/C][C]0.007407[/C][C]0.777778[/C][C]0.00037[/C][/ROW]
[ROW][C][380,400[[/C][C]390[/C][C]6[/C][C]0.044444[/C][C]0.822222[/C][C]0.002222[/C][/ROW]
[ROW][C][400,420[[/C][C]410[/C][C]5[/C][C]0.037037[/C][C]0.859259[/C][C]0.001852[/C][/ROW]
[ROW][C][420,440[[/C][C]430[/C][C]4[/C][C]0.02963[/C][C]0.888889[/C][C]0.001481[/C][/ROW]
[ROW][C][440,460[[/C][C]450[/C][C]3[/C][C]0.022222[/C][C]0.911111[/C][C]0.001111[/C][/ROW]
[ROW][C][460,480[[/C][C]470[/C][C]1[/C][C]0.007407[/C][C]0.918519[/C][C]0.00037[/C][/ROW]
[ROW][C][480,500[[/C][C]490[/C][C]0[/C][C]0[/C][C]0.918519[/C][C]0[/C][/ROW]
[ROW][C][500,520[[/C][C]510[/C][C]1[/C][C]0.007407[/C][C]0.925926[/C][C]0.00037[/C][/ROW]
[ROW][C][520,540[[/C][C]530[/C][C]0[/C][C]0[/C][C]0.925926[/C][C]0[/C][/ROW]
[ROW][C][540,560[[/C][C]550[/C][C]1[/C][C]0.007407[/C][C]0.933333[/C][C]0.00037[/C][/ROW]
[ROW][C][560,580[[/C][C]570[/C][C]0[/C][C]0[/C][C]0.933333[/C][C]0[/C][/ROW]
[ROW][C][580,600[[/C][C]590[/C][C]0[/C][C]0[/C][C]0.933333[/C][C]0[/C][/ROW]
[ROW][C][600,620[[/C][C]610[/C][C]2[/C][C]0.014815[/C][C]0.948148[/C][C]0.000741[/C][/ROW]
[ROW][C][620,640[[/C][C]630[/C][C]0[/C][C]0[/C][C]0.948148[/C][C]0[/C][/ROW]
[ROW][C][640,660[[/C][C]650[/C][C]2[/C][C]0.014815[/C][C]0.962963[/C][C]0.000741[/C][/ROW]
[ROW][C][660,680[[/C][C]670[/C][C]1[/C][C]0.007407[/C][C]0.97037[/C][C]0.00037[/C][/ROW]
[ROW][C][680,700[[/C][C]690[/C][C]2[/C][C]0.014815[/C][C]0.985185[/C][C]0.000741[/C][/ROW]
[ROW][C][700,720[[/C][C]710[/C][C]0[/C][C]0[/C][C]0.985185[/C][C]0[/C][/ROW]
[ROW][C][720,740[[/C][C]730[/C][C]0[/C][C]0[/C][C]0.985185[/C][C]0[/C][/ROW]
[ROW][C][740,760[[/C][C]750[/C][C]1[/C][C]0.007407[/C][C]0.992593[/C][C]0.00037[/C][/ROW]
[ROW][C][760,780[[/C][C]770[/C][C]0[/C][C]0[/C][C]0.992593[/C][C]0[/C][/ROW]
[ROW][C][780,800[[/C][C]790[/C][C]0[/C][C]0[/C][C]0.992593[/C][C]0[/C][/ROW]
[ROW][C][800,820[[/C][C]810[/C][C]0[/C][C]0[/C][C]0.992593[/C][C]0[/C][/ROW]
[ROW][C][820,840[[/C][C]830[/C][C]0[/C][C]0[/C][C]0.992593[/C][C]0[/C][/ROW]
[ROW][C][840,860[[/C][C]850[/C][C]0[/C][C]0[/C][C]0.992593[/C][C]0[/C][/ROW]
[ROW][C][860,880[[/C][C]870[/C][C]0[/C][C]0[/C][C]0.992593[/C][C]0[/C][/ROW]
[ROW][C][880,900[[/C][C]890[/C][C]0[/C][C]0[/C][C]0.992593[/C][C]0[/C][/ROW]
[ROW][C][900,920[[/C][C]910[/C][C]0[/C][C]0[/C][C]0.992593[/C][C]0[/C][/ROW]
[ROW][C][920,940[[/C][C]930[/C][C]0[/C][C]0[/C][C]0.992593[/C][C]0[/C][/ROW]
[ROW][C][940,960][/C][C]950[/C][C]1[/C][C]0.007407[/C][C]1[/C][C]0.00037[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=79664&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=79664&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,20[1020.0148150.0148150.000741
[20,40[3030.0222220.0370370.001111
[40,60[5020.0148150.0518520.000741
[60,80[7040.029630.0814810.001481
[80,100[9020.0148150.0962960.000741
[100,120[11020.0148150.1111110.000741
[120,140[13040.029630.1407410.001481
[140,160[15040.029630.170370.001481
[160,180[17030.0222220.1925930.001111
[180,200[190140.1037040.2962960.005185
[200,220[210160.1185190.4148150.005926
[220,240[230120.0888890.5037040.004444
[240,260[250120.0888890.5925930.004444
[260,280[270100.0740740.6666670.003704
[280,300[29040.029630.6962960.001481
[300,320[31050.0370370.7333330.001852
[320,340[33020.0148150.7481480.000741
[340,360[35030.0222220.770370.001111
[360,380[37010.0074070.7777780.00037
[380,400[39060.0444440.8222220.002222
[400,420[41050.0370370.8592590.001852
[420,440[43040.029630.8888890.001481
[440,460[45030.0222220.9111110.001111
[460,480[47010.0074070.9185190.00037
[480,500[490000.9185190
[500,520[51010.0074070.9259260.00037
[520,540[530000.9259260
[540,560[55010.0074070.9333330.00037
[560,580[570000.9333330
[580,600[590000.9333330
[600,620[61020.0148150.9481480.000741
[620,640[630000.9481480
[640,660[65020.0148150.9629630.000741
[660,680[67010.0074070.970370.00037
[680,700[69020.0148150.9851850.000741
[700,720[710000.9851850
[720,740[730000.9851850
[740,760[75010.0074070.9925930.00037
[760,780[770000.9925930
[780,800[790000.9925930
[800,820[810000.9925930
[820,840[830000.9925930
[840,860[850000.9925930
[860,880[870000.9925930
[880,900[890000.9925930
[900,920[910000.9925930
[920,940[930000.9925930
[940,960]95010.00740710.00037



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