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 computationTue, 08 Oct 2013 11:28:06 -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/Oct/08/t1381246113t9jxyx2yi4w73di.htm/, Retrieved Mon, 29 Apr 2024 17:43:38 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=214085, Retrieved Mon, 29 Apr 2024 17:43:38 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact79
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] [aaaa] [2013-10-08 15:28:06] [0d7c150e4162953d3ed4825183c0847f] [Current]
Feedback Forum

Post a new message




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

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=214085&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'Gertrude Mary Cox' @ cox.wessa.net







Frequency Table (Histogram)
BinsMidpointAbs. FrequencyRel. FrequencyCumul. Rel. Freq.Density
[100,110[10510.0069440.0069440.000694
[110,120[11560.0416670.0486110.004167
[120,130[12540.0277780.0763890.002778
[130,140[13550.0347220.1111110.003472
[140,150[14570.0486110.1597220.004861
[150,160[15520.0138890.1736110.001389
[160,170[16530.0208330.1944440.002083
[170,180[17570.0486110.2430560.004861
[180,190[18560.0416670.2847220.004167
[190,200[19570.0486110.3333330.004861
[200,210[20540.0277780.3611110.002778
[210,220[21520.0138890.3750.001389
[220,230[22540.0277780.4027780.002778
[230,240[23580.0555560.4583330.005556
[240,250[24530.0208330.4791670.002083
[250,260[25510.0069440.4861110.000694
[260,270[26540.0277780.5138890.002778
[270,280[27560.0416670.5555560.004167
[280,290[28510.0069440.56250.000694
[290,300[29510.0069440.5694440.000694
[300,310[30550.0347220.6041670.003472
[310,320[31580.0555560.6597220.005556
[320,330[325000.6597220
[330,340[33520.0138890.6736110.001389
[340,350[34560.0416670.7152780.004167
[350,360[35540.0277780.7430560.002778
[360,370[36550.0347220.7777780.003472
[370,380[37510.0069440.7847220.000694
[380,390[385000.7847220
[390,400[39530.0208330.8055560.002083
[400,410[40560.0416670.8472220.004167
[410,420[41530.0208330.8680560.002083
[420,430[42520.0138890.8819440.001389
[430,440[43520.0138890.8958330.001389
[440,450[445000.8958330
[450,460[455000.8958330
[460,470[46550.0347220.9305560.003472
[470,480[47520.0138890.9444440.001389
[480,490[485000.9444440
[490,500[49510.0069440.9513890.000694
[500,510[50520.0138890.9652780.001389
[510,520[515000.9652780
[520,530[525000.9652780
[530,540[53510.0069440.9722220.000694
[540,550[54510.0069440.9791670.000694
[550,560[55510.0069440.9861110.000694
[560,570[565000.9861110
[570,580[575000.9861110
[580,590[585000.9861110
[590,600[595000.9861110
[600,610[60510.0069440.9930560.000694
[610,620[615000.9930560
[620,630]62510.00694410.000694

\begin{tabular}{lllllllll}
\hline
Frequency Table (Histogram) \tabularnewline
Bins & Midpoint & Abs. Frequency & Rel. Frequency & Cumul. Rel. Freq. & Density \tabularnewline
[100,110[ & 105 & 1 & 0.006944 & 0.006944 & 0.000694 \tabularnewline
[110,120[ & 115 & 6 & 0.041667 & 0.048611 & 0.004167 \tabularnewline
[120,130[ & 125 & 4 & 0.027778 & 0.076389 & 0.002778 \tabularnewline
[130,140[ & 135 & 5 & 0.034722 & 0.111111 & 0.003472 \tabularnewline
[140,150[ & 145 & 7 & 0.048611 & 0.159722 & 0.004861 \tabularnewline
[150,160[ & 155 & 2 & 0.013889 & 0.173611 & 0.001389 \tabularnewline
[160,170[ & 165 & 3 & 0.020833 & 0.194444 & 0.002083 \tabularnewline
[170,180[ & 175 & 7 & 0.048611 & 0.243056 & 0.004861 \tabularnewline
[180,190[ & 185 & 6 & 0.041667 & 0.284722 & 0.004167 \tabularnewline
[190,200[ & 195 & 7 & 0.048611 & 0.333333 & 0.004861 \tabularnewline
[200,210[ & 205 & 4 & 0.027778 & 0.361111 & 0.002778 \tabularnewline
[210,220[ & 215 & 2 & 0.013889 & 0.375 & 0.001389 \tabularnewline
[220,230[ & 225 & 4 & 0.027778 & 0.402778 & 0.002778 \tabularnewline
[230,240[ & 235 & 8 & 0.055556 & 0.458333 & 0.005556 \tabularnewline
[240,250[ & 245 & 3 & 0.020833 & 0.479167 & 0.002083 \tabularnewline
[250,260[ & 255 & 1 & 0.006944 & 0.486111 & 0.000694 \tabularnewline
[260,270[ & 265 & 4 & 0.027778 & 0.513889 & 0.002778 \tabularnewline
[270,280[ & 275 & 6 & 0.041667 & 0.555556 & 0.004167 \tabularnewline
[280,290[ & 285 & 1 & 0.006944 & 0.5625 & 0.000694 \tabularnewline
[290,300[ & 295 & 1 & 0.006944 & 0.569444 & 0.000694 \tabularnewline
[300,310[ & 305 & 5 & 0.034722 & 0.604167 & 0.003472 \tabularnewline
[310,320[ & 315 & 8 & 0.055556 & 0.659722 & 0.005556 \tabularnewline
[320,330[ & 325 & 0 & 0 & 0.659722 & 0 \tabularnewline
[330,340[ & 335 & 2 & 0.013889 & 0.673611 & 0.001389 \tabularnewline
[340,350[ & 345 & 6 & 0.041667 & 0.715278 & 0.004167 \tabularnewline
[350,360[ & 355 & 4 & 0.027778 & 0.743056 & 0.002778 \tabularnewline
[360,370[ & 365 & 5 & 0.034722 & 0.777778 & 0.003472 \tabularnewline
[370,380[ & 375 & 1 & 0.006944 & 0.784722 & 0.000694 \tabularnewline
[380,390[ & 385 & 0 & 0 & 0.784722 & 0 \tabularnewline
[390,400[ & 395 & 3 & 0.020833 & 0.805556 & 0.002083 \tabularnewline
[400,410[ & 405 & 6 & 0.041667 & 0.847222 & 0.004167 \tabularnewline
[410,420[ & 415 & 3 & 0.020833 & 0.868056 & 0.002083 \tabularnewline
[420,430[ & 425 & 2 & 0.013889 & 0.881944 & 0.001389 \tabularnewline
[430,440[ & 435 & 2 & 0.013889 & 0.895833 & 0.001389 \tabularnewline
[440,450[ & 445 & 0 & 0 & 0.895833 & 0 \tabularnewline
[450,460[ & 455 & 0 & 0 & 0.895833 & 0 \tabularnewline
[460,470[ & 465 & 5 & 0.034722 & 0.930556 & 0.003472 \tabularnewline
[470,480[ & 475 & 2 & 0.013889 & 0.944444 & 0.001389 \tabularnewline
[480,490[ & 485 & 0 & 0 & 0.944444 & 0 \tabularnewline
[490,500[ & 495 & 1 & 0.006944 & 0.951389 & 0.000694 \tabularnewline
[500,510[ & 505 & 2 & 0.013889 & 0.965278 & 0.001389 \tabularnewline
[510,520[ & 515 & 0 & 0 & 0.965278 & 0 \tabularnewline
[520,530[ & 525 & 0 & 0 & 0.965278 & 0 \tabularnewline
[530,540[ & 535 & 1 & 0.006944 & 0.972222 & 0.000694 \tabularnewline
[540,550[ & 545 & 1 & 0.006944 & 0.979167 & 0.000694 \tabularnewline
[550,560[ & 555 & 1 & 0.006944 & 0.986111 & 0.000694 \tabularnewline
[560,570[ & 565 & 0 & 0 & 0.986111 & 0 \tabularnewline
[570,580[ & 575 & 0 & 0 & 0.986111 & 0 \tabularnewline
[580,590[ & 585 & 0 & 0 & 0.986111 & 0 \tabularnewline
[590,600[ & 595 & 0 & 0 & 0.986111 & 0 \tabularnewline
[600,610[ & 605 & 1 & 0.006944 & 0.993056 & 0.000694 \tabularnewline
[610,620[ & 615 & 0 & 0 & 0.993056 & 0 \tabularnewline
[620,630] & 625 & 1 & 0.006944 & 1 & 0.000694 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=214085&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][100,110[[/C][C]105[/C][C]1[/C][C]0.006944[/C][C]0.006944[/C][C]0.000694[/C][/ROW]
[ROW][C][110,120[[/C][C]115[/C][C]6[/C][C]0.041667[/C][C]0.048611[/C][C]0.004167[/C][/ROW]
[ROW][C][120,130[[/C][C]125[/C][C]4[/C][C]0.027778[/C][C]0.076389[/C][C]0.002778[/C][/ROW]
[ROW][C][130,140[[/C][C]135[/C][C]5[/C][C]0.034722[/C][C]0.111111[/C][C]0.003472[/C][/ROW]
[ROW][C][140,150[[/C][C]145[/C][C]7[/C][C]0.048611[/C][C]0.159722[/C][C]0.004861[/C][/ROW]
[ROW][C][150,160[[/C][C]155[/C][C]2[/C][C]0.013889[/C][C]0.173611[/C][C]0.001389[/C][/ROW]
[ROW][C][160,170[[/C][C]165[/C][C]3[/C][C]0.020833[/C][C]0.194444[/C][C]0.002083[/C][/ROW]
[ROW][C][170,180[[/C][C]175[/C][C]7[/C][C]0.048611[/C][C]0.243056[/C][C]0.004861[/C][/ROW]
[ROW][C][180,190[[/C][C]185[/C][C]6[/C][C]0.041667[/C][C]0.284722[/C][C]0.004167[/C][/ROW]
[ROW][C][190,200[[/C][C]195[/C][C]7[/C][C]0.048611[/C][C]0.333333[/C][C]0.004861[/C][/ROW]
[ROW][C][200,210[[/C][C]205[/C][C]4[/C][C]0.027778[/C][C]0.361111[/C][C]0.002778[/C][/ROW]
[ROW][C][210,220[[/C][C]215[/C][C]2[/C][C]0.013889[/C][C]0.375[/C][C]0.001389[/C][/ROW]
[ROW][C][220,230[[/C][C]225[/C][C]4[/C][C]0.027778[/C][C]0.402778[/C][C]0.002778[/C][/ROW]
[ROW][C][230,240[[/C][C]235[/C][C]8[/C][C]0.055556[/C][C]0.458333[/C][C]0.005556[/C][/ROW]
[ROW][C][240,250[[/C][C]245[/C][C]3[/C][C]0.020833[/C][C]0.479167[/C][C]0.002083[/C][/ROW]
[ROW][C][250,260[[/C][C]255[/C][C]1[/C][C]0.006944[/C][C]0.486111[/C][C]0.000694[/C][/ROW]
[ROW][C][260,270[[/C][C]265[/C][C]4[/C][C]0.027778[/C][C]0.513889[/C][C]0.002778[/C][/ROW]
[ROW][C][270,280[[/C][C]275[/C][C]6[/C][C]0.041667[/C][C]0.555556[/C][C]0.004167[/C][/ROW]
[ROW][C][280,290[[/C][C]285[/C][C]1[/C][C]0.006944[/C][C]0.5625[/C][C]0.000694[/C][/ROW]
[ROW][C][290,300[[/C][C]295[/C][C]1[/C][C]0.006944[/C][C]0.569444[/C][C]0.000694[/C][/ROW]
[ROW][C][300,310[[/C][C]305[/C][C]5[/C][C]0.034722[/C][C]0.604167[/C][C]0.003472[/C][/ROW]
[ROW][C][310,320[[/C][C]315[/C][C]8[/C][C]0.055556[/C][C]0.659722[/C][C]0.005556[/C][/ROW]
[ROW][C][320,330[[/C][C]325[/C][C]0[/C][C]0[/C][C]0.659722[/C][C]0[/C][/ROW]
[ROW][C][330,340[[/C][C]335[/C][C]2[/C][C]0.013889[/C][C]0.673611[/C][C]0.001389[/C][/ROW]
[ROW][C][340,350[[/C][C]345[/C][C]6[/C][C]0.041667[/C][C]0.715278[/C][C]0.004167[/C][/ROW]
[ROW][C][350,360[[/C][C]355[/C][C]4[/C][C]0.027778[/C][C]0.743056[/C][C]0.002778[/C][/ROW]
[ROW][C][360,370[[/C][C]365[/C][C]5[/C][C]0.034722[/C][C]0.777778[/C][C]0.003472[/C][/ROW]
[ROW][C][370,380[[/C][C]375[/C][C]1[/C][C]0.006944[/C][C]0.784722[/C][C]0.000694[/C][/ROW]
[ROW][C][380,390[[/C][C]385[/C][C]0[/C][C]0[/C][C]0.784722[/C][C]0[/C][/ROW]
[ROW][C][390,400[[/C][C]395[/C][C]3[/C][C]0.020833[/C][C]0.805556[/C][C]0.002083[/C][/ROW]
[ROW][C][400,410[[/C][C]405[/C][C]6[/C][C]0.041667[/C][C]0.847222[/C][C]0.004167[/C][/ROW]
[ROW][C][410,420[[/C][C]415[/C][C]3[/C][C]0.020833[/C][C]0.868056[/C][C]0.002083[/C][/ROW]
[ROW][C][420,430[[/C][C]425[/C][C]2[/C][C]0.013889[/C][C]0.881944[/C][C]0.001389[/C][/ROW]
[ROW][C][430,440[[/C][C]435[/C][C]2[/C][C]0.013889[/C][C]0.895833[/C][C]0.001389[/C][/ROW]
[ROW][C][440,450[[/C][C]445[/C][C]0[/C][C]0[/C][C]0.895833[/C][C]0[/C][/ROW]
[ROW][C][450,460[[/C][C]455[/C][C]0[/C][C]0[/C][C]0.895833[/C][C]0[/C][/ROW]
[ROW][C][460,470[[/C][C]465[/C][C]5[/C][C]0.034722[/C][C]0.930556[/C][C]0.003472[/C][/ROW]
[ROW][C][470,480[[/C][C]475[/C][C]2[/C][C]0.013889[/C][C]0.944444[/C][C]0.001389[/C][/ROW]
[ROW][C][480,490[[/C][C]485[/C][C]0[/C][C]0[/C][C]0.944444[/C][C]0[/C][/ROW]
[ROW][C][490,500[[/C][C]495[/C][C]1[/C][C]0.006944[/C][C]0.951389[/C][C]0.000694[/C][/ROW]
[ROW][C][500,510[[/C][C]505[/C][C]2[/C][C]0.013889[/C][C]0.965278[/C][C]0.001389[/C][/ROW]
[ROW][C][510,520[[/C][C]515[/C][C]0[/C][C]0[/C][C]0.965278[/C][C]0[/C][/ROW]
[ROW][C][520,530[[/C][C]525[/C][C]0[/C][C]0[/C][C]0.965278[/C][C]0[/C][/ROW]
[ROW][C][530,540[[/C][C]535[/C][C]1[/C][C]0.006944[/C][C]0.972222[/C][C]0.000694[/C][/ROW]
[ROW][C][540,550[[/C][C]545[/C][C]1[/C][C]0.006944[/C][C]0.979167[/C][C]0.000694[/C][/ROW]
[ROW][C][550,560[[/C][C]555[/C][C]1[/C][C]0.006944[/C][C]0.986111[/C][C]0.000694[/C][/ROW]
[ROW][C][560,570[[/C][C]565[/C][C]0[/C][C]0[/C][C]0.986111[/C][C]0[/C][/ROW]
[ROW][C][570,580[[/C][C]575[/C][C]0[/C][C]0[/C][C]0.986111[/C][C]0[/C][/ROW]
[ROW][C][580,590[[/C][C]585[/C][C]0[/C][C]0[/C][C]0.986111[/C][C]0[/C][/ROW]
[ROW][C][590,600[[/C][C]595[/C][C]0[/C][C]0[/C][C]0.986111[/C][C]0[/C][/ROW]
[ROW][C][600,610[[/C][C]605[/C][C]1[/C][C]0.006944[/C][C]0.993056[/C][C]0.000694[/C][/ROW]
[ROW][C][610,620[[/C][C]615[/C][C]0[/C][C]0[/C][C]0.993056[/C][C]0[/C][/ROW]
[ROW][C][620,630][/C][C]625[/C][C]1[/C][C]0.006944[/C][C]1[/C][C]0.000694[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=214085&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=214085&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
[100,110[10510.0069440.0069440.000694
[110,120[11560.0416670.0486110.004167
[120,130[12540.0277780.0763890.002778
[130,140[13550.0347220.1111110.003472
[140,150[14570.0486110.1597220.004861
[150,160[15520.0138890.1736110.001389
[160,170[16530.0208330.1944440.002083
[170,180[17570.0486110.2430560.004861
[180,190[18560.0416670.2847220.004167
[190,200[19570.0486110.3333330.004861
[200,210[20540.0277780.3611110.002778
[210,220[21520.0138890.3750.001389
[220,230[22540.0277780.4027780.002778
[230,240[23580.0555560.4583330.005556
[240,250[24530.0208330.4791670.002083
[250,260[25510.0069440.4861110.000694
[260,270[26540.0277780.5138890.002778
[270,280[27560.0416670.5555560.004167
[280,290[28510.0069440.56250.000694
[290,300[29510.0069440.5694440.000694
[300,310[30550.0347220.6041670.003472
[310,320[31580.0555560.6597220.005556
[320,330[325000.6597220
[330,340[33520.0138890.6736110.001389
[340,350[34560.0416670.7152780.004167
[350,360[35540.0277780.7430560.002778
[360,370[36550.0347220.7777780.003472
[370,380[37510.0069440.7847220.000694
[380,390[385000.7847220
[390,400[39530.0208330.8055560.002083
[400,410[40560.0416670.8472220.004167
[410,420[41530.0208330.8680560.002083
[420,430[42520.0138890.8819440.001389
[430,440[43520.0138890.8958330.001389
[440,450[445000.8958330
[450,460[455000.8958330
[460,470[46550.0347220.9305560.003472
[470,480[47520.0138890.9444440.001389
[480,490[485000.9444440
[490,500[49510.0069440.9513890.000694
[500,510[50520.0138890.9652780.001389
[510,520[515000.9652780
[520,530[525000.9652780
[530,540[53510.0069440.9722220.000694
[540,550[54510.0069440.9791670.000694
[550,560[55510.0069440.9861110.000694
[560,570[565000.9861110
[570,580[575000.9861110
[580,590[585000.9861110
[590,600[595000.9861110
[600,610[60510.0069440.9930560.000694
[610,620[615000.9930560
[620,630]62510.00694410.000694



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