Free Statistics

of Irreproducible Research!

Author's title

Author*Unverified author*
R Software Modulerwasp_percentiles.wasp
Title produced by softwarePercentiles
Date of computationMon, 12 Nov 2007 11:18:50 -0700
Cite this page as followsStatistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?v=date/2007/Nov/12/t1194891265qldf77cpt76jhp3.htm/, Retrieved Sun, 28 Apr 2024 19:45:49 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=5286, Retrieved Sun, 28 Apr 2024 19:45:49 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact181
Family? (F = Feedback message, R = changed R code, M = changed R Module, P = changed Parameters, D = changed Data)
-       [Percentiles] [Percentiles: werk...] [2007-11-12 18:18:50] [94abaf6e1c7b1fd4f9d5e2c2d987f350] [Current]
Feedback Forum

Post a new message
Dataseries X:
140
132
117
114
113
110
107
103
98
98
137
148
147
139
130
128
127
123
118
114
108
111
151
159
158
148
138
137
136
133
126
120
114
116
153
162
161
149
139
135
130
127
122
117
112
113
149
157
157
147
137
132
125
123
117
114
111
112
144
150
149
134
123
116
117
111
105
102
95
93
124
130
124




Summary of compuational 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 compuational 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=5286&T=0

[TABLE]
[ROW][C]Summary of compuational 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=5286&T=0

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=5286&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 compuational 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







Percentiles - Ungrouped Data
pWeighted Average at XnpWeighted Average at X(n+1)pEmpirical Distribution FunctionEmpirical Distribution Function - AveragingEmpirical Distribution Function - InterpolationClosest ObservationTrue Basic - Statistics Graphics ToolkitMS Excel (old versions)
0.0293.9293.96959596.329394.0493
0.0497.7697.889898989895.1298
0.0699.5299.76102102102.3298100.2498
0.08102.84102.92103103104.52103102.08103
0.1105.6105.8107107107.2105106.2105
0.12107.76107.88108108109.28108107.12108
0.14110.22110.36111111111110110.64110
0.16111111111111111111111111
0.18111.14111.32112112111.96111111.68111
0.2112112112112112.4112112112
0.22113113113113113113113113
0.24113.52113.76114114114114113.24114
0.26114114114114114114114114
0.28114114114114114.32114114114
0.3115.8116116116116116116116
0.32116.36116.68117117117116116.32117
0.34117117117117117117117117
0.36117117117117117117117117
0.38117.74118.24118118118.72118119.76118
0.4120.4121.2122122121.6120120.8122
0.42122.66123123123123123123123
0.44123123123123123123123123
0.46123.58124124124124124124124
0.48124.04124.52125125124.56124124.48125
0.5125.5126126126126126126126
0.52126.96127127127127127127127
0.54127.42127.96128128127.88127127.04128
0.56129.76130130130130130130130
0.58130130130130130130130130
0.6131.6132132132132132132132
0.62132.26132.88133133132.64132132.12133
0.64133.72134.36134134134.08134134.64134
0.66135.18135.84136136135.52135135.16136
0.68136.64137137137136.96137137137
0.7137137137137137137137137
0.72137.56138.28138138137.84138138.72138
0.74139139139139139139139139
0.76139.48140.96140140139.72139143.04140
0.78143.76146.16144144144.48144144.84147
0.8147147.2147147147147147.8147
0.82147.86148148148148148148148
0.84148.32149149149148.48148149149
0.86149149149149149149149149
0.88149.24150.12150150149.36149150.88150
0.9150.7152.2151151150.8151151.8153
0.92153.64157157157153.96153157157
0.94157157.56157157157157157.44158
0.96158.08159.08159159158.12158160.92159
0.98160.08161.52161161160.12161161.48162

\begin{tabular}{lllllllll}
\hline
Percentiles - Ungrouped Data \tabularnewline
p & Weighted Average at Xnp & Weighted Average at X(n+1)p & Empirical Distribution Function & Empirical Distribution Function - Averaging & Empirical Distribution Function - Interpolation & Closest Observation & True Basic - Statistics Graphics Toolkit & MS Excel (old versions) \tabularnewline
0.02 & 93.92 & 93.96 & 95 & 95 & 96.32 & 93 & 94.04 & 93 \tabularnewline
0.04 & 97.76 & 97.88 & 98 & 98 & 98 & 98 & 95.12 & 98 \tabularnewline
0.06 & 99.52 & 99.76 & 102 & 102 & 102.32 & 98 & 100.24 & 98 \tabularnewline
0.08 & 102.84 & 102.92 & 103 & 103 & 104.52 & 103 & 102.08 & 103 \tabularnewline
0.1 & 105.6 & 105.8 & 107 & 107 & 107.2 & 105 & 106.2 & 105 \tabularnewline
0.12 & 107.76 & 107.88 & 108 & 108 & 109.28 & 108 & 107.12 & 108 \tabularnewline
0.14 & 110.22 & 110.36 & 111 & 111 & 111 & 110 & 110.64 & 110 \tabularnewline
0.16 & 111 & 111 & 111 & 111 & 111 & 111 & 111 & 111 \tabularnewline
0.18 & 111.14 & 111.32 & 112 & 112 & 111.96 & 111 & 111.68 & 111 \tabularnewline
0.2 & 112 & 112 & 112 & 112 & 112.4 & 112 & 112 & 112 \tabularnewline
0.22 & 113 & 113 & 113 & 113 & 113 & 113 & 113 & 113 \tabularnewline
0.24 & 113.52 & 113.76 & 114 & 114 & 114 & 114 & 113.24 & 114 \tabularnewline
0.26 & 114 & 114 & 114 & 114 & 114 & 114 & 114 & 114 \tabularnewline
0.28 & 114 & 114 & 114 & 114 & 114.32 & 114 & 114 & 114 \tabularnewline
0.3 & 115.8 & 116 & 116 & 116 & 116 & 116 & 116 & 116 \tabularnewline
0.32 & 116.36 & 116.68 & 117 & 117 & 117 & 116 & 116.32 & 117 \tabularnewline
0.34 & 117 & 117 & 117 & 117 & 117 & 117 & 117 & 117 \tabularnewline
0.36 & 117 & 117 & 117 & 117 & 117 & 117 & 117 & 117 \tabularnewline
0.38 & 117.74 & 118.24 & 118 & 118 & 118.72 & 118 & 119.76 & 118 \tabularnewline
0.4 & 120.4 & 121.2 & 122 & 122 & 121.6 & 120 & 120.8 & 122 \tabularnewline
0.42 & 122.66 & 123 & 123 & 123 & 123 & 123 & 123 & 123 \tabularnewline
0.44 & 123 & 123 & 123 & 123 & 123 & 123 & 123 & 123 \tabularnewline
0.46 & 123.58 & 124 & 124 & 124 & 124 & 124 & 124 & 124 \tabularnewline
0.48 & 124.04 & 124.52 & 125 & 125 & 124.56 & 124 & 124.48 & 125 \tabularnewline
0.5 & 125.5 & 126 & 126 & 126 & 126 & 126 & 126 & 126 \tabularnewline
0.52 & 126.96 & 127 & 127 & 127 & 127 & 127 & 127 & 127 \tabularnewline
0.54 & 127.42 & 127.96 & 128 & 128 & 127.88 & 127 & 127.04 & 128 \tabularnewline
0.56 & 129.76 & 130 & 130 & 130 & 130 & 130 & 130 & 130 \tabularnewline
0.58 & 130 & 130 & 130 & 130 & 130 & 130 & 130 & 130 \tabularnewline
0.6 & 131.6 & 132 & 132 & 132 & 132 & 132 & 132 & 132 \tabularnewline
0.62 & 132.26 & 132.88 & 133 & 133 & 132.64 & 132 & 132.12 & 133 \tabularnewline
0.64 & 133.72 & 134.36 & 134 & 134 & 134.08 & 134 & 134.64 & 134 \tabularnewline
0.66 & 135.18 & 135.84 & 136 & 136 & 135.52 & 135 & 135.16 & 136 \tabularnewline
0.68 & 136.64 & 137 & 137 & 137 & 136.96 & 137 & 137 & 137 \tabularnewline
0.7 & 137 & 137 & 137 & 137 & 137 & 137 & 137 & 137 \tabularnewline
0.72 & 137.56 & 138.28 & 138 & 138 & 137.84 & 138 & 138.72 & 138 \tabularnewline
0.74 & 139 & 139 & 139 & 139 & 139 & 139 & 139 & 139 \tabularnewline
0.76 & 139.48 & 140.96 & 140 & 140 & 139.72 & 139 & 143.04 & 140 \tabularnewline
0.78 & 143.76 & 146.16 & 144 & 144 & 144.48 & 144 & 144.84 & 147 \tabularnewline
0.8 & 147 & 147.2 & 147 & 147 & 147 & 147 & 147.8 & 147 \tabularnewline
0.82 & 147.86 & 148 & 148 & 148 & 148 & 148 & 148 & 148 \tabularnewline
0.84 & 148.32 & 149 & 149 & 149 & 148.48 & 148 & 149 & 149 \tabularnewline
0.86 & 149 & 149 & 149 & 149 & 149 & 149 & 149 & 149 \tabularnewline
0.88 & 149.24 & 150.12 & 150 & 150 & 149.36 & 149 & 150.88 & 150 \tabularnewline
0.9 & 150.7 & 152.2 & 151 & 151 & 150.8 & 151 & 151.8 & 153 \tabularnewline
0.92 & 153.64 & 157 & 157 & 157 & 153.96 & 153 & 157 & 157 \tabularnewline
0.94 & 157 & 157.56 & 157 & 157 & 157 & 157 & 157.44 & 158 \tabularnewline
0.96 & 158.08 & 159.08 & 159 & 159 & 158.12 & 158 & 160.92 & 159 \tabularnewline
0.98 & 160.08 & 161.52 & 161 & 161 & 160.12 & 161 & 161.48 & 162 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=5286&T=1

[TABLE]
[ROW][C]Percentiles - Ungrouped Data[/C][/ROW]
[ROW][C]p[/C][C]Weighted Average at Xnp[/C][C]Weighted Average at X(n+1)p[/C][C]Empirical Distribution Function[/C][C]Empirical Distribution Function - Averaging[/C][C]Empirical Distribution Function - Interpolation[/C][C]Closest Observation[/C][C]True Basic - Statistics Graphics Toolkit[/C][C]MS Excel (old versions)[/C][/ROW]
[ROW][C]0.02[/C][C]93.92[/C][C]93.96[/C][C]95[/C][C]95[/C][C]96.32[/C][C]93[/C][C]94.04[/C][C]93[/C][/ROW]
[ROW][C]0.04[/C][C]97.76[/C][C]97.88[/C][C]98[/C][C]98[/C][C]98[/C][C]98[/C][C]95.12[/C][C]98[/C][/ROW]
[ROW][C]0.06[/C][C]99.52[/C][C]99.76[/C][C]102[/C][C]102[/C][C]102.32[/C][C]98[/C][C]100.24[/C][C]98[/C][/ROW]
[ROW][C]0.08[/C][C]102.84[/C][C]102.92[/C][C]103[/C][C]103[/C][C]104.52[/C][C]103[/C][C]102.08[/C][C]103[/C][/ROW]
[ROW][C]0.1[/C][C]105.6[/C][C]105.8[/C][C]107[/C][C]107[/C][C]107.2[/C][C]105[/C][C]106.2[/C][C]105[/C][/ROW]
[ROW][C]0.12[/C][C]107.76[/C][C]107.88[/C][C]108[/C][C]108[/C][C]109.28[/C][C]108[/C][C]107.12[/C][C]108[/C][/ROW]
[ROW][C]0.14[/C][C]110.22[/C][C]110.36[/C][C]111[/C][C]111[/C][C]111[/C][C]110[/C][C]110.64[/C][C]110[/C][/ROW]
[ROW][C]0.16[/C][C]111[/C][C]111[/C][C]111[/C][C]111[/C][C]111[/C][C]111[/C][C]111[/C][C]111[/C][/ROW]
[ROW][C]0.18[/C][C]111.14[/C][C]111.32[/C][C]112[/C][C]112[/C][C]111.96[/C][C]111[/C][C]111.68[/C][C]111[/C][/ROW]
[ROW][C]0.2[/C][C]112[/C][C]112[/C][C]112[/C][C]112[/C][C]112.4[/C][C]112[/C][C]112[/C][C]112[/C][/ROW]
[ROW][C]0.22[/C][C]113[/C][C]113[/C][C]113[/C][C]113[/C][C]113[/C][C]113[/C][C]113[/C][C]113[/C][/ROW]
[ROW][C]0.24[/C][C]113.52[/C][C]113.76[/C][C]114[/C][C]114[/C][C]114[/C][C]114[/C][C]113.24[/C][C]114[/C][/ROW]
[ROW][C]0.26[/C][C]114[/C][C]114[/C][C]114[/C][C]114[/C][C]114[/C][C]114[/C][C]114[/C][C]114[/C][/ROW]
[ROW][C]0.28[/C][C]114[/C][C]114[/C][C]114[/C][C]114[/C][C]114.32[/C][C]114[/C][C]114[/C][C]114[/C][/ROW]
[ROW][C]0.3[/C][C]115.8[/C][C]116[/C][C]116[/C][C]116[/C][C]116[/C][C]116[/C][C]116[/C][C]116[/C][/ROW]
[ROW][C]0.32[/C][C]116.36[/C][C]116.68[/C][C]117[/C][C]117[/C][C]117[/C][C]116[/C][C]116.32[/C][C]117[/C][/ROW]
[ROW][C]0.34[/C][C]117[/C][C]117[/C][C]117[/C][C]117[/C][C]117[/C][C]117[/C][C]117[/C][C]117[/C][/ROW]
[ROW][C]0.36[/C][C]117[/C][C]117[/C][C]117[/C][C]117[/C][C]117[/C][C]117[/C][C]117[/C][C]117[/C][/ROW]
[ROW][C]0.38[/C][C]117.74[/C][C]118.24[/C][C]118[/C][C]118[/C][C]118.72[/C][C]118[/C][C]119.76[/C][C]118[/C][/ROW]
[ROW][C]0.4[/C][C]120.4[/C][C]121.2[/C][C]122[/C][C]122[/C][C]121.6[/C][C]120[/C][C]120.8[/C][C]122[/C][/ROW]
[ROW][C]0.42[/C][C]122.66[/C][C]123[/C][C]123[/C][C]123[/C][C]123[/C][C]123[/C][C]123[/C][C]123[/C][/ROW]
[ROW][C]0.44[/C][C]123[/C][C]123[/C][C]123[/C][C]123[/C][C]123[/C][C]123[/C][C]123[/C][C]123[/C][/ROW]
[ROW][C]0.46[/C][C]123.58[/C][C]124[/C][C]124[/C][C]124[/C][C]124[/C][C]124[/C][C]124[/C][C]124[/C][/ROW]
[ROW][C]0.48[/C][C]124.04[/C][C]124.52[/C][C]125[/C][C]125[/C][C]124.56[/C][C]124[/C][C]124.48[/C][C]125[/C][/ROW]
[ROW][C]0.5[/C][C]125.5[/C][C]126[/C][C]126[/C][C]126[/C][C]126[/C][C]126[/C][C]126[/C][C]126[/C][/ROW]
[ROW][C]0.52[/C][C]126.96[/C][C]127[/C][C]127[/C][C]127[/C][C]127[/C][C]127[/C][C]127[/C][C]127[/C][/ROW]
[ROW][C]0.54[/C][C]127.42[/C][C]127.96[/C][C]128[/C][C]128[/C][C]127.88[/C][C]127[/C][C]127.04[/C][C]128[/C][/ROW]
[ROW][C]0.56[/C][C]129.76[/C][C]130[/C][C]130[/C][C]130[/C][C]130[/C][C]130[/C][C]130[/C][C]130[/C][/ROW]
[ROW][C]0.58[/C][C]130[/C][C]130[/C][C]130[/C][C]130[/C][C]130[/C][C]130[/C][C]130[/C][C]130[/C][/ROW]
[ROW][C]0.6[/C][C]131.6[/C][C]132[/C][C]132[/C][C]132[/C][C]132[/C][C]132[/C][C]132[/C][C]132[/C][/ROW]
[ROW][C]0.62[/C][C]132.26[/C][C]132.88[/C][C]133[/C][C]133[/C][C]132.64[/C][C]132[/C][C]132.12[/C][C]133[/C][/ROW]
[ROW][C]0.64[/C][C]133.72[/C][C]134.36[/C][C]134[/C][C]134[/C][C]134.08[/C][C]134[/C][C]134.64[/C][C]134[/C][/ROW]
[ROW][C]0.66[/C][C]135.18[/C][C]135.84[/C][C]136[/C][C]136[/C][C]135.52[/C][C]135[/C][C]135.16[/C][C]136[/C][/ROW]
[ROW][C]0.68[/C][C]136.64[/C][C]137[/C][C]137[/C][C]137[/C][C]136.96[/C][C]137[/C][C]137[/C][C]137[/C][/ROW]
[ROW][C]0.7[/C][C]137[/C][C]137[/C][C]137[/C][C]137[/C][C]137[/C][C]137[/C][C]137[/C][C]137[/C][/ROW]
[ROW][C]0.72[/C][C]137.56[/C][C]138.28[/C][C]138[/C][C]138[/C][C]137.84[/C][C]138[/C][C]138.72[/C][C]138[/C][/ROW]
[ROW][C]0.74[/C][C]139[/C][C]139[/C][C]139[/C][C]139[/C][C]139[/C][C]139[/C][C]139[/C][C]139[/C][/ROW]
[ROW][C]0.76[/C][C]139.48[/C][C]140.96[/C][C]140[/C][C]140[/C][C]139.72[/C][C]139[/C][C]143.04[/C][C]140[/C][/ROW]
[ROW][C]0.78[/C][C]143.76[/C][C]146.16[/C][C]144[/C][C]144[/C][C]144.48[/C][C]144[/C][C]144.84[/C][C]147[/C][/ROW]
[ROW][C]0.8[/C][C]147[/C][C]147.2[/C][C]147[/C][C]147[/C][C]147[/C][C]147[/C][C]147.8[/C][C]147[/C][/ROW]
[ROW][C]0.82[/C][C]147.86[/C][C]148[/C][C]148[/C][C]148[/C][C]148[/C][C]148[/C][C]148[/C][C]148[/C][/ROW]
[ROW][C]0.84[/C][C]148.32[/C][C]149[/C][C]149[/C][C]149[/C][C]148.48[/C][C]148[/C][C]149[/C][C]149[/C][/ROW]
[ROW][C]0.86[/C][C]149[/C][C]149[/C][C]149[/C][C]149[/C][C]149[/C][C]149[/C][C]149[/C][C]149[/C][/ROW]
[ROW][C]0.88[/C][C]149.24[/C][C]150.12[/C][C]150[/C][C]150[/C][C]149.36[/C][C]149[/C][C]150.88[/C][C]150[/C][/ROW]
[ROW][C]0.9[/C][C]150.7[/C][C]152.2[/C][C]151[/C][C]151[/C][C]150.8[/C][C]151[/C][C]151.8[/C][C]153[/C][/ROW]
[ROW][C]0.92[/C][C]153.64[/C][C]157[/C][C]157[/C][C]157[/C][C]153.96[/C][C]153[/C][C]157[/C][C]157[/C][/ROW]
[ROW][C]0.94[/C][C]157[/C][C]157.56[/C][C]157[/C][C]157[/C][C]157[/C][C]157[/C][C]157.44[/C][C]158[/C][/ROW]
[ROW][C]0.96[/C][C]158.08[/C][C]159.08[/C][C]159[/C][C]159[/C][C]158.12[/C][C]158[/C][C]160.92[/C][C]159[/C][/ROW]
[ROW][C]0.98[/C][C]160.08[/C][C]161.52[/C][C]161[/C][C]161[/C][C]160.12[/C][C]161[/C][C]161.48[/C][C]162[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=5286&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=5286&T=1

As an alternative you can also use a QR Code:  

The GUIDs for individual cells are displayed in the table below:

Percentiles - Ungrouped Data
pWeighted Average at XnpWeighted Average at X(n+1)pEmpirical Distribution FunctionEmpirical Distribution Function - AveragingEmpirical Distribution Function - InterpolationClosest ObservationTrue Basic - Statistics Graphics ToolkitMS Excel (old versions)
0.0293.9293.96959596.329394.0493
0.0497.7697.889898989895.1298
0.0699.5299.76102102102.3298100.2498
0.08102.84102.92103103104.52103102.08103
0.1105.6105.8107107107.2105106.2105
0.12107.76107.88108108109.28108107.12108
0.14110.22110.36111111111110110.64110
0.16111111111111111111111111
0.18111.14111.32112112111.96111111.68111
0.2112112112112112.4112112112
0.22113113113113113113113113
0.24113.52113.76114114114114113.24114
0.26114114114114114114114114
0.28114114114114114.32114114114
0.3115.8116116116116116116116
0.32116.36116.68117117117116116.32117
0.34117117117117117117117117
0.36117117117117117117117117
0.38117.74118.24118118118.72118119.76118
0.4120.4121.2122122121.6120120.8122
0.42122.66123123123123123123123
0.44123123123123123123123123
0.46123.58124124124124124124124
0.48124.04124.52125125124.56124124.48125
0.5125.5126126126126126126126
0.52126.96127127127127127127127
0.54127.42127.96128128127.88127127.04128
0.56129.76130130130130130130130
0.58130130130130130130130130
0.6131.6132132132132132132132
0.62132.26132.88133133132.64132132.12133
0.64133.72134.36134134134.08134134.64134
0.66135.18135.84136136135.52135135.16136
0.68136.64137137137136.96137137137
0.7137137137137137137137137
0.72137.56138.28138138137.84138138.72138
0.74139139139139139139139139
0.76139.48140.96140140139.72139143.04140
0.78143.76146.16144144144.48144144.84147
0.8147147.2147147147147147.8147
0.82147.86148148148148148148148
0.84148.32149149149148.48148149149
0.86149149149149149149149149
0.88149.24150.12150150149.36149150.88150
0.9150.7152.2151151150.8151151.8153
0.92153.64157157157153.96153157157
0.94157157.56157157157157157.44158
0.96158.08159.08159159158.12158160.92159
0.98160.08161.52161161160.12161161.48162



Parameters (Session):
Parameters (R input):
R code (references can be found in the software module):
x <-sort(x[!is.na(x)])
q1 <- function(data,n,p,i,f) {
np <- n*p;
i <<- floor(np)
f <<- np - i
qvalue <- (1-f)*data[i] + f*data[i+1]
}
q2 <- function(data,n,p,i,f) {
np <- (n+1)*p
i <<- floor(np)
f <<- np - i
qvalue <- (1-f)*data[i] + f*data[i+1]
}
q3 <- function(data,n,p,i,f) {
np <- n*p
i <<- floor(np)
f <<- np - i
if (f==0) {
qvalue <- data[i]
} else {
qvalue <- data[i+1]
}
}
q4 <- function(data,n,p,i,f) {
np <- n*p
i <<- floor(np)
f <<- np - i
if (f==0) {
qvalue <- (data[i]+data[i+1])/2
} else {
qvalue <- data[i+1]
}
}
q5 <- function(data,n,p,i,f) {
np <- (n-1)*p
i <<- floor(np)
f <<- np - i
if (f==0) {
qvalue <- data[i+1]
} else {
qvalue <- data[i+1] + f*(data[i+2]-data[i+1])
}
}
q6 <- function(data,n,p,i,f) {
np <- n*p+0.5
i <<- floor(np)
f <<- np - i
qvalue <- data[i]
}
q7 <- function(data,n,p,i,f) {
np <- (n+1)*p
i <<- floor(np)
f <<- np - i
if (f==0) {
qvalue <- data[i]
} else {
qvalue <- f*data[i] + (1-f)*data[i+1]
}
}
q8 <- function(data,n,p,i,f) {
np <- (n+1)*p
i <<- floor(np)
f <<- np - i
if (f==0) {
qvalue <- data[i]
} else {
if (f == 0.5) {
qvalue <- (data[i]+data[i+1])/2
} else {
if (f < 0.5) {
qvalue <- data[i]
} else {
qvalue <- data[i+1]
}
}
}
}
lx <- length(x)
qval <- array(NA,dim=c(99,8))
mystep <- 25
mystart <- 25
if (lx>10){
mystep=10
mystart=10
}
if (lx>20){
mystep=5
mystart=5
}
if (lx>50){
mystep=2
mystart=2
}
if (lx>=100){
mystep=1
mystart=1
}
for (perc in seq(mystart,99,mystep)) {
qval[perc,1] <- q1(x,lx,perc/100,i,f)
qval[perc,2] <- q2(x,lx,perc/100,i,f)
qval[perc,3] <- q3(x,lx,perc/100,i,f)
qval[perc,4] <- q4(x,lx,perc/100,i,f)
qval[perc,5] <- q5(x,lx,perc/100,i,f)
qval[perc,6] <- q6(x,lx,perc/100,i,f)
qval[perc,7] <- q7(x,lx,perc/100,i,f)
qval[perc,8] <- q8(x,lx,perc/100,i,f)
}
bitmap(file='test1.png')
myqqnorm <- qqnorm(x,col=2)
dev.off()
load(file='createtable')
a<-table.start()
a<-table.row.start(a)
a<-table.element(a,'Percentiles - Ungrouped Data',9,TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'p',1,TRUE)
a<-table.element(a,hyperlink('method_1.htm', 'Weighted Average at Xnp',''),1,TRUE)
a<-table.element(a,hyperlink('method_2.htm','Weighted Average at X(n+1)p',''),1,TRUE)
a<-table.element(a,hyperlink('method_3.htm','Empirical Distribution Function',''),1,TRUE)
a<-table.element(a,hyperlink('method_4.htm','Empirical Distribution Function - Averaging',''),1,TRUE)
a<-table.element(a,hyperlink('method_5.htm','Empirical Distribution Function - Interpolation',''),1,TRUE)
a<-table.element(a,hyperlink('method_6.htm','Closest Observation',''),1,TRUE)
a<-table.element(a,hyperlink('method_7.htm','True Basic - Statistics Graphics Toolkit',''),1,TRUE)
a<-table.element(a,hyperlink('method_8.htm','MS Excel (old versions)',''),1,TRUE)
a<-table.row.end(a)
for (perc in seq(mystart,99,mystep)) {
a<-table.row.start(a)
a<-table.element(a,round(perc/100,2),1,TRUE)
for (j in 1:8) {
a<-table.element(a,round(qval[perc,j],6))
}
a<-table.row.end(a)
}
a<-table.end(a)
table.save(a,file='mytable.tab')