Free Statistics

of Irreproducible Research!

Author's title

Author*Unverified author*
R Software Modulerwasp_histogram.wasp
Title produced by softwareHistogram
Date of computationTue, 14 Feb 2012 06:11:54 -0500
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/Feb/14/t1329217998ja3i21n45wcgiae.htm/, Retrieved Mon, 29 Apr 2024 13:06:38 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=162255, Retrieved Mon, 29 Apr 2024 13:06:38 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact125
Family? (F = Feedback message, R = changed R code, M = changed R Module, P = changed Parameters, D = changed Data)
-       [Histogram] [huur ( index cijf...] [2012-02-14 11:11:54] [1f4a81ae6fe0e483feb8688127b64584] [Current]
Feedback Forum

Post a new message
Dataseries X:
104.78
104.87
105.06
105.14
105.32
105.54
105.68
105.77
106.07
106.03
106.13
106.28
106.61
106.74
107.01
107.1
107.28
107.4
107.59
107.69
107.78
108.02
108
108.07
108.36
108.74
108.99
109.21
109.31
109.41
109.54
109.81
109.85
110.01
110.23
110.28
110.79
110.91
111.21
111.44
111.52
111.85
112.03
111.9
112.11
112.15
112.09
112.13
112.45
112.5
112.72
112.72
112.83
112.95
112.98
113.07
113.1
113.16
113.2
113.3
113.48
113.67
113.81
113.94
114.13
114.19
114.21
114.21
114.35
114.54
114.51
114.53




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

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







Frequency Table (Histogram)
BinsMidpointAbs. FrequencyRel. FrequencyCumul. Rel. Freq.Density
[104.6,104.8[104.710.0138890.0138890.069444
[104.8,105[104.910.0138890.0277780.069444
[105,105.2[105.120.0277780.0555560.138889
[105.2,105.4[105.310.0138890.0694440.069444
[105.4,105.6[105.510.0138890.0833330.069444
[105.6,105.8[105.720.0277780.1111110.138889
[105.8,106[105.9000.1111110
[106,106.2[106.130.0416670.1527780.208333
[106.2,106.4[106.310.0138890.1666670.069444
[106.4,106.6[106.5000.1666670
[106.6,106.8[106.720.0277780.1944440.138889
[106.8,107[106.9000.1944440
[107,107.2[107.120.0277780.2222220.138889
[107.2,107.4[107.310.0138890.2361110.069444
[107.4,107.6[107.520.0277780.2638890.138889
[107.6,107.8[107.720.0277780.2916670.138889
[107.8,108[107.9000.2916670
[108,108.2[108.130.0416670.3333330.208333
[108.2,108.4[108.310.0138890.3472220.069444
[108.4,108.6[108.5000.3472220
[108.6,108.8[108.710.0138890.3611110.069444
[108.8,109[108.910.0138890.3750.069444
[109,109.2[109.1000.3750
[109.2,109.4[109.320.0277780.4027780.138889
[109.4,109.6[109.520.0277780.4305560.138889
[109.6,109.8[109.7000.4305560
[109.8,110[109.920.0277780.4583330.138889
[110,110.2[110.110.0138890.4722220.069444
[110.2,110.4[110.320.0277780.50.138889
[110.4,110.6[110.5000.50
[110.6,110.8[110.710.0138890.5138890.069444
[110.8,111[110.910.0138890.5277780.069444
[111,111.2[111.1000.5277780
[111.2,111.4[111.310.0138890.5416670.069444
[111.4,111.6[111.520.0277780.5694440.138889
[111.6,111.8[111.7000.5694440
[111.8,112[111.920.0277780.5972220.138889
[112,112.2[112.150.0694440.6666670.347222
[112.2,112.4[112.3000.6666670
[112.4,112.6[112.520.0277780.6944440.138889
[112.6,112.8[112.720.0277780.7222220.138889
[112.8,113[112.930.0416670.7638890.208333
[113,113.2[113.130.0416670.8055560.208333
[113.2,113.4[113.320.0277780.8333330.138889
[113.4,113.6[113.510.0138890.8472220.069444
[113.6,113.8[113.710.0138890.8611110.069444
[113.8,114[113.920.0277780.8888890.138889
[114,114.2[114.120.0277780.9166670.138889
[114.2,114.4[114.330.0416670.9583330.208333
[114.4,114.6]114.530.04166710.208333

\begin{tabular}{lllllllll}
\hline
Frequency Table (Histogram) \tabularnewline
Bins & Midpoint & Abs. Frequency & Rel. Frequency & Cumul. Rel. Freq. & Density \tabularnewline
[104.6,104.8[ & 104.7 & 1 & 0.013889 & 0.013889 & 0.069444 \tabularnewline
[104.8,105[ & 104.9 & 1 & 0.013889 & 0.027778 & 0.069444 \tabularnewline
[105,105.2[ & 105.1 & 2 & 0.027778 & 0.055556 & 0.138889 \tabularnewline
[105.2,105.4[ & 105.3 & 1 & 0.013889 & 0.069444 & 0.069444 \tabularnewline
[105.4,105.6[ & 105.5 & 1 & 0.013889 & 0.083333 & 0.069444 \tabularnewline
[105.6,105.8[ & 105.7 & 2 & 0.027778 & 0.111111 & 0.138889 \tabularnewline
[105.8,106[ & 105.9 & 0 & 0 & 0.111111 & 0 \tabularnewline
[106,106.2[ & 106.1 & 3 & 0.041667 & 0.152778 & 0.208333 \tabularnewline
[106.2,106.4[ & 106.3 & 1 & 0.013889 & 0.166667 & 0.069444 \tabularnewline
[106.4,106.6[ & 106.5 & 0 & 0 & 0.166667 & 0 \tabularnewline
[106.6,106.8[ & 106.7 & 2 & 0.027778 & 0.194444 & 0.138889 \tabularnewline
[106.8,107[ & 106.9 & 0 & 0 & 0.194444 & 0 \tabularnewline
[107,107.2[ & 107.1 & 2 & 0.027778 & 0.222222 & 0.138889 \tabularnewline
[107.2,107.4[ & 107.3 & 1 & 0.013889 & 0.236111 & 0.069444 \tabularnewline
[107.4,107.6[ & 107.5 & 2 & 0.027778 & 0.263889 & 0.138889 \tabularnewline
[107.6,107.8[ & 107.7 & 2 & 0.027778 & 0.291667 & 0.138889 \tabularnewline
[107.8,108[ & 107.9 & 0 & 0 & 0.291667 & 0 \tabularnewline
[108,108.2[ & 108.1 & 3 & 0.041667 & 0.333333 & 0.208333 \tabularnewline
[108.2,108.4[ & 108.3 & 1 & 0.013889 & 0.347222 & 0.069444 \tabularnewline
[108.4,108.6[ & 108.5 & 0 & 0 & 0.347222 & 0 \tabularnewline
[108.6,108.8[ & 108.7 & 1 & 0.013889 & 0.361111 & 0.069444 \tabularnewline
[108.8,109[ & 108.9 & 1 & 0.013889 & 0.375 & 0.069444 \tabularnewline
[109,109.2[ & 109.1 & 0 & 0 & 0.375 & 0 \tabularnewline
[109.2,109.4[ & 109.3 & 2 & 0.027778 & 0.402778 & 0.138889 \tabularnewline
[109.4,109.6[ & 109.5 & 2 & 0.027778 & 0.430556 & 0.138889 \tabularnewline
[109.6,109.8[ & 109.7 & 0 & 0 & 0.430556 & 0 \tabularnewline
[109.8,110[ & 109.9 & 2 & 0.027778 & 0.458333 & 0.138889 \tabularnewline
[110,110.2[ & 110.1 & 1 & 0.013889 & 0.472222 & 0.069444 \tabularnewline
[110.2,110.4[ & 110.3 & 2 & 0.027778 & 0.5 & 0.138889 \tabularnewline
[110.4,110.6[ & 110.5 & 0 & 0 & 0.5 & 0 \tabularnewline
[110.6,110.8[ & 110.7 & 1 & 0.013889 & 0.513889 & 0.069444 \tabularnewline
[110.8,111[ & 110.9 & 1 & 0.013889 & 0.527778 & 0.069444 \tabularnewline
[111,111.2[ & 111.1 & 0 & 0 & 0.527778 & 0 \tabularnewline
[111.2,111.4[ & 111.3 & 1 & 0.013889 & 0.541667 & 0.069444 \tabularnewline
[111.4,111.6[ & 111.5 & 2 & 0.027778 & 0.569444 & 0.138889 \tabularnewline
[111.6,111.8[ & 111.7 & 0 & 0 & 0.569444 & 0 \tabularnewline
[111.8,112[ & 111.9 & 2 & 0.027778 & 0.597222 & 0.138889 \tabularnewline
[112,112.2[ & 112.1 & 5 & 0.069444 & 0.666667 & 0.347222 \tabularnewline
[112.2,112.4[ & 112.3 & 0 & 0 & 0.666667 & 0 \tabularnewline
[112.4,112.6[ & 112.5 & 2 & 0.027778 & 0.694444 & 0.138889 \tabularnewline
[112.6,112.8[ & 112.7 & 2 & 0.027778 & 0.722222 & 0.138889 \tabularnewline
[112.8,113[ & 112.9 & 3 & 0.041667 & 0.763889 & 0.208333 \tabularnewline
[113,113.2[ & 113.1 & 3 & 0.041667 & 0.805556 & 0.208333 \tabularnewline
[113.2,113.4[ & 113.3 & 2 & 0.027778 & 0.833333 & 0.138889 \tabularnewline
[113.4,113.6[ & 113.5 & 1 & 0.013889 & 0.847222 & 0.069444 \tabularnewline
[113.6,113.8[ & 113.7 & 1 & 0.013889 & 0.861111 & 0.069444 \tabularnewline
[113.8,114[ & 113.9 & 2 & 0.027778 & 0.888889 & 0.138889 \tabularnewline
[114,114.2[ & 114.1 & 2 & 0.027778 & 0.916667 & 0.138889 \tabularnewline
[114.2,114.4[ & 114.3 & 3 & 0.041667 & 0.958333 & 0.208333 \tabularnewline
[114.4,114.6] & 114.5 & 3 & 0.041667 & 1 & 0.208333 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=162255&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][104.6,104.8[[/C][C]104.7[/C][C]1[/C][C]0.013889[/C][C]0.013889[/C][C]0.069444[/C][/ROW]
[ROW][C][104.8,105[[/C][C]104.9[/C][C]1[/C][C]0.013889[/C][C]0.027778[/C][C]0.069444[/C][/ROW]
[ROW][C][105,105.2[[/C][C]105.1[/C][C]2[/C][C]0.027778[/C][C]0.055556[/C][C]0.138889[/C][/ROW]
[ROW][C][105.2,105.4[[/C][C]105.3[/C][C]1[/C][C]0.013889[/C][C]0.069444[/C][C]0.069444[/C][/ROW]
[ROW][C][105.4,105.6[[/C][C]105.5[/C][C]1[/C][C]0.013889[/C][C]0.083333[/C][C]0.069444[/C][/ROW]
[ROW][C][105.6,105.8[[/C][C]105.7[/C][C]2[/C][C]0.027778[/C][C]0.111111[/C][C]0.138889[/C][/ROW]
[ROW][C][105.8,106[[/C][C]105.9[/C][C]0[/C][C]0[/C][C]0.111111[/C][C]0[/C][/ROW]
[ROW][C][106,106.2[[/C][C]106.1[/C][C]3[/C][C]0.041667[/C][C]0.152778[/C][C]0.208333[/C][/ROW]
[ROW][C][106.2,106.4[[/C][C]106.3[/C][C]1[/C][C]0.013889[/C][C]0.166667[/C][C]0.069444[/C][/ROW]
[ROW][C][106.4,106.6[[/C][C]106.5[/C][C]0[/C][C]0[/C][C]0.166667[/C][C]0[/C][/ROW]
[ROW][C][106.6,106.8[[/C][C]106.7[/C][C]2[/C][C]0.027778[/C][C]0.194444[/C][C]0.138889[/C][/ROW]
[ROW][C][106.8,107[[/C][C]106.9[/C][C]0[/C][C]0[/C][C]0.194444[/C][C]0[/C][/ROW]
[ROW][C][107,107.2[[/C][C]107.1[/C][C]2[/C][C]0.027778[/C][C]0.222222[/C][C]0.138889[/C][/ROW]
[ROW][C][107.2,107.4[[/C][C]107.3[/C][C]1[/C][C]0.013889[/C][C]0.236111[/C][C]0.069444[/C][/ROW]
[ROW][C][107.4,107.6[[/C][C]107.5[/C][C]2[/C][C]0.027778[/C][C]0.263889[/C][C]0.138889[/C][/ROW]
[ROW][C][107.6,107.8[[/C][C]107.7[/C][C]2[/C][C]0.027778[/C][C]0.291667[/C][C]0.138889[/C][/ROW]
[ROW][C][107.8,108[[/C][C]107.9[/C][C]0[/C][C]0[/C][C]0.291667[/C][C]0[/C][/ROW]
[ROW][C][108,108.2[[/C][C]108.1[/C][C]3[/C][C]0.041667[/C][C]0.333333[/C][C]0.208333[/C][/ROW]
[ROW][C][108.2,108.4[[/C][C]108.3[/C][C]1[/C][C]0.013889[/C][C]0.347222[/C][C]0.069444[/C][/ROW]
[ROW][C][108.4,108.6[[/C][C]108.5[/C][C]0[/C][C]0[/C][C]0.347222[/C][C]0[/C][/ROW]
[ROW][C][108.6,108.8[[/C][C]108.7[/C][C]1[/C][C]0.013889[/C][C]0.361111[/C][C]0.069444[/C][/ROW]
[ROW][C][108.8,109[[/C][C]108.9[/C][C]1[/C][C]0.013889[/C][C]0.375[/C][C]0.069444[/C][/ROW]
[ROW][C][109,109.2[[/C][C]109.1[/C][C]0[/C][C]0[/C][C]0.375[/C][C]0[/C][/ROW]
[ROW][C][109.2,109.4[[/C][C]109.3[/C][C]2[/C][C]0.027778[/C][C]0.402778[/C][C]0.138889[/C][/ROW]
[ROW][C][109.4,109.6[[/C][C]109.5[/C][C]2[/C][C]0.027778[/C][C]0.430556[/C][C]0.138889[/C][/ROW]
[ROW][C][109.6,109.8[[/C][C]109.7[/C][C]0[/C][C]0[/C][C]0.430556[/C][C]0[/C][/ROW]
[ROW][C][109.8,110[[/C][C]109.9[/C][C]2[/C][C]0.027778[/C][C]0.458333[/C][C]0.138889[/C][/ROW]
[ROW][C][110,110.2[[/C][C]110.1[/C][C]1[/C][C]0.013889[/C][C]0.472222[/C][C]0.069444[/C][/ROW]
[ROW][C][110.2,110.4[[/C][C]110.3[/C][C]2[/C][C]0.027778[/C][C]0.5[/C][C]0.138889[/C][/ROW]
[ROW][C][110.4,110.6[[/C][C]110.5[/C][C]0[/C][C]0[/C][C]0.5[/C][C]0[/C][/ROW]
[ROW][C][110.6,110.8[[/C][C]110.7[/C][C]1[/C][C]0.013889[/C][C]0.513889[/C][C]0.069444[/C][/ROW]
[ROW][C][110.8,111[[/C][C]110.9[/C][C]1[/C][C]0.013889[/C][C]0.527778[/C][C]0.069444[/C][/ROW]
[ROW][C][111,111.2[[/C][C]111.1[/C][C]0[/C][C]0[/C][C]0.527778[/C][C]0[/C][/ROW]
[ROW][C][111.2,111.4[[/C][C]111.3[/C][C]1[/C][C]0.013889[/C][C]0.541667[/C][C]0.069444[/C][/ROW]
[ROW][C][111.4,111.6[[/C][C]111.5[/C][C]2[/C][C]0.027778[/C][C]0.569444[/C][C]0.138889[/C][/ROW]
[ROW][C][111.6,111.8[[/C][C]111.7[/C][C]0[/C][C]0[/C][C]0.569444[/C][C]0[/C][/ROW]
[ROW][C][111.8,112[[/C][C]111.9[/C][C]2[/C][C]0.027778[/C][C]0.597222[/C][C]0.138889[/C][/ROW]
[ROW][C][112,112.2[[/C][C]112.1[/C][C]5[/C][C]0.069444[/C][C]0.666667[/C][C]0.347222[/C][/ROW]
[ROW][C][112.2,112.4[[/C][C]112.3[/C][C]0[/C][C]0[/C][C]0.666667[/C][C]0[/C][/ROW]
[ROW][C][112.4,112.6[[/C][C]112.5[/C][C]2[/C][C]0.027778[/C][C]0.694444[/C][C]0.138889[/C][/ROW]
[ROW][C][112.6,112.8[[/C][C]112.7[/C][C]2[/C][C]0.027778[/C][C]0.722222[/C][C]0.138889[/C][/ROW]
[ROW][C][112.8,113[[/C][C]112.9[/C][C]3[/C][C]0.041667[/C][C]0.763889[/C][C]0.208333[/C][/ROW]
[ROW][C][113,113.2[[/C][C]113.1[/C][C]3[/C][C]0.041667[/C][C]0.805556[/C][C]0.208333[/C][/ROW]
[ROW][C][113.2,113.4[[/C][C]113.3[/C][C]2[/C][C]0.027778[/C][C]0.833333[/C][C]0.138889[/C][/ROW]
[ROW][C][113.4,113.6[[/C][C]113.5[/C][C]1[/C][C]0.013889[/C][C]0.847222[/C][C]0.069444[/C][/ROW]
[ROW][C][113.6,113.8[[/C][C]113.7[/C][C]1[/C][C]0.013889[/C][C]0.861111[/C][C]0.069444[/C][/ROW]
[ROW][C][113.8,114[[/C][C]113.9[/C][C]2[/C][C]0.027778[/C][C]0.888889[/C][C]0.138889[/C][/ROW]
[ROW][C][114,114.2[[/C][C]114.1[/C][C]2[/C][C]0.027778[/C][C]0.916667[/C][C]0.138889[/C][/ROW]
[ROW][C][114.2,114.4[[/C][C]114.3[/C][C]3[/C][C]0.041667[/C][C]0.958333[/C][C]0.208333[/C][/ROW]
[ROW][C][114.4,114.6][/C][C]114.5[/C][C]3[/C][C]0.041667[/C][C]1[/C][C]0.208333[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=162255&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=162255&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
[104.6,104.8[104.710.0138890.0138890.069444
[104.8,105[104.910.0138890.0277780.069444
[105,105.2[105.120.0277780.0555560.138889
[105.2,105.4[105.310.0138890.0694440.069444
[105.4,105.6[105.510.0138890.0833330.069444
[105.6,105.8[105.720.0277780.1111110.138889
[105.8,106[105.9000.1111110
[106,106.2[106.130.0416670.1527780.208333
[106.2,106.4[106.310.0138890.1666670.069444
[106.4,106.6[106.5000.1666670
[106.6,106.8[106.720.0277780.1944440.138889
[106.8,107[106.9000.1944440
[107,107.2[107.120.0277780.2222220.138889
[107.2,107.4[107.310.0138890.2361110.069444
[107.4,107.6[107.520.0277780.2638890.138889
[107.6,107.8[107.720.0277780.2916670.138889
[107.8,108[107.9000.2916670
[108,108.2[108.130.0416670.3333330.208333
[108.2,108.4[108.310.0138890.3472220.069444
[108.4,108.6[108.5000.3472220
[108.6,108.8[108.710.0138890.3611110.069444
[108.8,109[108.910.0138890.3750.069444
[109,109.2[109.1000.3750
[109.2,109.4[109.320.0277780.4027780.138889
[109.4,109.6[109.520.0277780.4305560.138889
[109.6,109.8[109.7000.4305560
[109.8,110[109.920.0277780.4583330.138889
[110,110.2[110.110.0138890.4722220.069444
[110.2,110.4[110.320.0277780.50.138889
[110.4,110.6[110.5000.50
[110.6,110.8[110.710.0138890.5138890.069444
[110.8,111[110.910.0138890.5277780.069444
[111,111.2[111.1000.5277780
[111.2,111.4[111.310.0138890.5416670.069444
[111.4,111.6[111.520.0277780.5694440.138889
[111.6,111.8[111.7000.5694440
[111.8,112[111.920.0277780.5972220.138889
[112,112.2[112.150.0694440.6666670.347222
[112.2,112.4[112.3000.6666670
[112.4,112.6[112.520.0277780.6944440.138889
[112.6,112.8[112.720.0277780.7222220.138889
[112.8,113[112.930.0416670.7638890.208333
[113,113.2[113.130.0416670.8055560.208333
[113.2,113.4[113.320.0277780.8333330.138889
[113.4,113.6[113.510.0138890.8472220.069444
[113.6,113.8[113.710.0138890.8611110.069444
[113.8,114[113.920.0277780.8888890.138889
[114,114.2[114.120.0277780.9166670.138889
[114.2,114.4[114.330.0416670.9583330.208333
[114.4,114.6]114.530.04166710.208333



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')
}