Free Statistics

of Irreproducible Research!

Author's title

Author*Unverified author*
R Software Modulerwasp_percentiles.wasp
Title produced by softwarePercentiles
Date of computationMon, 15 Oct 2012 14:36:00 -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/2012/Oct/15/t13503262147j3ku9w2ixvlo7k.htm/, Retrieved Tue, 07 May 2024 08:42:30 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=177663, Retrieved Tue, 07 May 2024 08:42:30 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact82
Family? (F = Feedback message, R = changed R code, M = changed R Module, P = changed Parameters, D = changed Data)
-       [Percentiles] [Werkloosheid in B...] [2012-10-15 18:36:00] [ad1fc76d648632443dce4152f75a8e3a] [Current]
Feedback Forum

Post a new message
Dataseries X:
125
123
117
114
111
112
144
150
149
134
123
116
117
111
105
102
95
93
124
130
124
115
106
105
105
101
95
93
84
87
116
120
117
109
105
107
109
109
108
107
99
103
131
137
135
124
118
121
121
118
113
107
100
102
130
136
133
120
112
109
110
106
102
98
92
92
120
127
124
114
108
106




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

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=177663&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'Herman Ole Andreas Wold' @ wold.wessa.net







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.0285.3285.38878789.18485.6284
0.0491.491.69292929287.492
0.0692.3292.389393939292.6292
0.089393939394.36939393
0.19595959595.3959595
0.1296.9297.28989898.529895.7298
0.1499.0899.2210010099.949999.7899
0.16100.52100.68101101101.36101100.32101
0.18101.96102102102102102102102
0.2102102102102102.2102102102
0.22102.84103.12103103104.24103104.88103
0.24105105105105105105105105
0.26105105105105105105105105
0.28105.16105.44106106105.88105105.56105
0.3106106106106106106106106
0.32106.04106.36107107106.72106106.64106
0.34107107107107107107107107
0.36107107.28107107107.56107107.72107
0.38108108108108108108108108
0.4108.8109109109109109109109
0.42109109109109109109109109
0.44109109.12109109109.24109109.88109
0.46110.12110.58111111110.66110110.42111
0.48111111.04111111111.08111111.96111
0.5112112112112112112112112
0.52112.44112.96113113112.92112112.04113
0.54113.88114114114114114114114
0.56114.32114.88115115114.76114114.12115
0.58115.76116116116116116116116
0.6116.2116.8117117116.6116116.2117
0.62117117117117117117117117
0.64117.08117.72118118117.44117117.28118
0.66118118.36118118118118119.64118
0.68119.92120120120120120120120
0.7120120.1120120120120120.9120
0.72120.84121121121121121121121
0.74121.56123123123122.08121123123
0.76123123.48123123123123123.52123
0.78124124124124124124124124
0.8124124124124124124124124
0.82124.04124.86125125124.22124124.14125
0.84125.96127.96127127126.28125129.04127
0.86129.76130130130130130130130
0.88130.36131.48131131130.48130132.52131
0.9132.6133.7133133132.8133133.3134
0.92134.24135.16135135134.32134135.84135
0.94135.68136.62136136135.74136136.38137
0.96137.84144.4144144138.12137148.6144
0.98146.8149.54149149146.9149149.46150

\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 & 85.32 & 85.38 & 87 & 87 & 89.1 & 84 & 85.62 & 84 \tabularnewline
0.04 & 91.4 & 91.6 & 92 & 92 & 92 & 92 & 87.4 & 92 \tabularnewline
0.06 & 92.32 & 92.38 & 93 & 93 & 93 & 92 & 92.62 & 92 \tabularnewline
0.08 & 93 & 93 & 93 & 93 & 94.36 & 93 & 93 & 93 \tabularnewline
0.1 & 95 & 95 & 95 & 95 & 95.3 & 95 & 95 & 95 \tabularnewline
0.12 & 96.92 & 97.28 & 98 & 98 & 98.52 & 98 & 95.72 & 98 \tabularnewline
0.14 & 99.08 & 99.22 & 100 & 100 & 99.94 & 99 & 99.78 & 99 \tabularnewline
0.16 & 100.52 & 100.68 & 101 & 101 & 101.36 & 101 & 100.32 & 101 \tabularnewline
0.18 & 101.96 & 102 & 102 & 102 & 102 & 102 & 102 & 102 \tabularnewline
0.2 & 102 & 102 & 102 & 102 & 102.2 & 102 & 102 & 102 \tabularnewline
0.22 & 102.84 & 103.12 & 103 & 103 & 104.24 & 103 & 104.88 & 103 \tabularnewline
0.24 & 105 & 105 & 105 & 105 & 105 & 105 & 105 & 105 \tabularnewline
0.26 & 105 & 105 & 105 & 105 & 105 & 105 & 105 & 105 \tabularnewline
0.28 & 105.16 & 105.44 & 106 & 106 & 105.88 & 105 & 105.56 & 105 \tabularnewline
0.3 & 106 & 106 & 106 & 106 & 106 & 106 & 106 & 106 \tabularnewline
0.32 & 106.04 & 106.36 & 107 & 107 & 106.72 & 106 & 106.64 & 106 \tabularnewline
0.34 & 107 & 107 & 107 & 107 & 107 & 107 & 107 & 107 \tabularnewline
0.36 & 107 & 107.28 & 107 & 107 & 107.56 & 107 & 107.72 & 107 \tabularnewline
0.38 & 108 & 108 & 108 & 108 & 108 & 108 & 108 & 108 \tabularnewline
0.4 & 108.8 & 109 & 109 & 109 & 109 & 109 & 109 & 109 \tabularnewline
0.42 & 109 & 109 & 109 & 109 & 109 & 109 & 109 & 109 \tabularnewline
0.44 & 109 & 109.12 & 109 & 109 & 109.24 & 109 & 109.88 & 109 \tabularnewline
0.46 & 110.12 & 110.58 & 111 & 111 & 110.66 & 110 & 110.42 & 111 \tabularnewline
0.48 & 111 & 111.04 & 111 & 111 & 111.08 & 111 & 111.96 & 111 \tabularnewline
0.5 & 112 & 112 & 112 & 112 & 112 & 112 & 112 & 112 \tabularnewline
0.52 & 112.44 & 112.96 & 113 & 113 & 112.92 & 112 & 112.04 & 113 \tabularnewline
0.54 & 113.88 & 114 & 114 & 114 & 114 & 114 & 114 & 114 \tabularnewline
0.56 & 114.32 & 114.88 & 115 & 115 & 114.76 & 114 & 114.12 & 115 \tabularnewline
0.58 & 115.76 & 116 & 116 & 116 & 116 & 116 & 116 & 116 \tabularnewline
0.6 & 116.2 & 116.8 & 117 & 117 & 116.6 & 116 & 116.2 & 117 \tabularnewline
0.62 & 117 & 117 & 117 & 117 & 117 & 117 & 117 & 117 \tabularnewline
0.64 & 117.08 & 117.72 & 118 & 118 & 117.44 & 117 & 117.28 & 118 \tabularnewline
0.66 & 118 & 118.36 & 118 & 118 & 118 & 118 & 119.64 & 118 \tabularnewline
0.68 & 119.92 & 120 & 120 & 120 & 120 & 120 & 120 & 120 \tabularnewline
0.7 & 120 & 120.1 & 120 & 120 & 120 & 120 & 120.9 & 120 \tabularnewline
0.72 & 120.84 & 121 & 121 & 121 & 121 & 121 & 121 & 121 \tabularnewline
0.74 & 121.56 & 123 & 123 & 123 & 122.08 & 121 & 123 & 123 \tabularnewline
0.76 & 123 & 123.48 & 123 & 123 & 123 & 123 & 123.52 & 123 \tabularnewline
0.78 & 124 & 124 & 124 & 124 & 124 & 124 & 124 & 124 \tabularnewline
0.8 & 124 & 124 & 124 & 124 & 124 & 124 & 124 & 124 \tabularnewline
0.82 & 124.04 & 124.86 & 125 & 125 & 124.22 & 124 & 124.14 & 125 \tabularnewline
0.84 & 125.96 & 127.96 & 127 & 127 & 126.28 & 125 & 129.04 & 127 \tabularnewline
0.86 & 129.76 & 130 & 130 & 130 & 130 & 130 & 130 & 130 \tabularnewline
0.88 & 130.36 & 131.48 & 131 & 131 & 130.48 & 130 & 132.52 & 131 \tabularnewline
0.9 & 132.6 & 133.7 & 133 & 133 & 132.8 & 133 & 133.3 & 134 \tabularnewline
0.92 & 134.24 & 135.16 & 135 & 135 & 134.32 & 134 & 135.84 & 135 \tabularnewline
0.94 & 135.68 & 136.62 & 136 & 136 & 135.74 & 136 & 136.38 & 137 \tabularnewline
0.96 & 137.84 & 144.4 & 144 & 144 & 138.12 & 137 & 148.6 & 144 \tabularnewline
0.98 & 146.8 & 149.54 & 149 & 149 & 146.9 & 149 & 149.46 & 150 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=177663&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]85.32[/C][C]85.38[/C][C]87[/C][C]87[/C][C]89.1[/C][C]84[/C][C]85.62[/C][C]84[/C][/ROW]
[ROW][C]0.04[/C][C]91.4[/C][C]91.6[/C][C]92[/C][C]92[/C][C]92[/C][C]92[/C][C]87.4[/C][C]92[/C][/ROW]
[ROW][C]0.06[/C][C]92.32[/C][C]92.38[/C][C]93[/C][C]93[/C][C]93[/C][C]92[/C][C]92.62[/C][C]92[/C][/ROW]
[ROW][C]0.08[/C][C]93[/C][C]93[/C][C]93[/C][C]93[/C][C]94.36[/C][C]93[/C][C]93[/C][C]93[/C][/ROW]
[ROW][C]0.1[/C][C]95[/C][C]95[/C][C]95[/C][C]95[/C][C]95.3[/C][C]95[/C][C]95[/C][C]95[/C][/ROW]
[ROW][C]0.12[/C][C]96.92[/C][C]97.28[/C][C]98[/C][C]98[/C][C]98.52[/C][C]98[/C][C]95.72[/C][C]98[/C][/ROW]
[ROW][C]0.14[/C][C]99.08[/C][C]99.22[/C][C]100[/C][C]100[/C][C]99.94[/C][C]99[/C][C]99.78[/C][C]99[/C][/ROW]
[ROW][C]0.16[/C][C]100.52[/C][C]100.68[/C][C]101[/C][C]101[/C][C]101.36[/C][C]101[/C][C]100.32[/C][C]101[/C][/ROW]
[ROW][C]0.18[/C][C]101.96[/C][C]102[/C][C]102[/C][C]102[/C][C]102[/C][C]102[/C][C]102[/C][C]102[/C][/ROW]
[ROW][C]0.2[/C][C]102[/C][C]102[/C][C]102[/C][C]102[/C][C]102.2[/C][C]102[/C][C]102[/C][C]102[/C][/ROW]
[ROW][C]0.22[/C][C]102.84[/C][C]103.12[/C][C]103[/C][C]103[/C][C]104.24[/C][C]103[/C][C]104.88[/C][C]103[/C][/ROW]
[ROW][C]0.24[/C][C]105[/C][C]105[/C][C]105[/C][C]105[/C][C]105[/C][C]105[/C][C]105[/C][C]105[/C][/ROW]
[ROW][C]0.26[/C][C]105[/C][C]105[/C][C]105[/C][C]105[/C][C]105[/C][C]105[/C][C]105[/C][C]105[/C][/ROW]
[ROW][C]0.28[/C][C]105.16[/C][C]105.44[/C][C]106[/C][C]106[/C][C]105.88[/C][C]105[/C][C]105.56[/C][C]105[/C][/ROW]
[ROW][C]0.3[/C][C]106[/C][C]106[/C][C]106[/C][C]106[/C][C]106[/C][C]106[/C][C]106[/C][C]106[/C][/ROW]
[ROW][C]0.32[/C][C]106.04[/C][C]106.36[/C][C]107[/C][C]107[/C][C]106.72[/C][C]106[/C][C]106.64[/C][C]106[/C][/ROW]
[ROW][C]0.34[/C][C]107[/C][C]107[/C][C]107[/C][C]107[/C][C]107[/C][C]107[/C][C]107[/C][C]107[/C][/ROW]
[ROW][C]0.36[/C][C]107[/C][C]107.28[/C][C]107[/C][C]107[/C][C]107.56[/C][C]107[/C][C]107.72[/C][C]107[/C][/ROW]
[ROW][C]0.38[/C][C]108[/C][C]108[/C][C]108[/C][C]108[/C][C]108[/C][C]108[/C][C]108[/C][C]108[/C][/ROW]
[ROW][C]0.4[/C][C]108.8[/C][C]109[/C][C]109[/C][C]109[/C][C]109[/C][C]109[/C][C]109[/C][C]109[/C][/ROW]
[ROW][C]0.42[/C][C]109[/C][C]109[/C][C]109[/C][C]109[/C][C]109[/C][C]109[/C][C]109[/C][C]109[/C][/ROW]
[ROW][C]0.44[/C][C]109[/C][C]109.12[/C][C]109[/C][C]109[/C][C]109.24[/C][C]109[/C][C]109.88[/C][C]109[/C][/ROW]
[ROW][C]0.46[/C][C]110.12[/C][C]110.58[/C][C]111[/C][C]111[/C][C]110.66[/C][C]110[/C][C]110.42[/C][C]111[/C][/ROW]
[ROW][C]0.48[/C][C]111[/C][C]111.04[/C][C]111[/C][C]111[/C][C]111.08[/C][C]111[/C][C]111.96[/C][C]111[/C][/ROW]
[ROW][C]0.5[/C][C]112[/C][C]112[/C][C]112[/C][C]112[/C][C]112[/C][C]112[/C][C]112[/C][C]112[/C][/ROW]
[ROW][C]0.52[/C][C]112.44[/C][C]112.96[/C][C]113[/C][C]113[/C][C]112.92[/C][C]112[/C][C]112.04[/C][C]113[/C][/ROW]
[ROW][C]0.54[/C][C]113.88[/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.56[/C][C]114.32[/C][C]114.88[/C][C]115[/C][C]115[/C][C]114.76[/C][C]114[/C][C]114.12[/C][C]115[/C][/ROW]
[ROW][C]0.58[/C][C]115.76[/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.6[/C][C]116.2[/C][C]116.8[/C][C]117[/C][C]117[/C][C]116.6[/C][C]116[/C][C]116.2[/C][C]117[/C][/ROW]
[ROW][C]0.62[/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.64[/C][C]117.08[/C][C]117.72[/C][C]118[/C][C]118[/C][C]117.44[/C][C]117[/C][C]117.28[/C][C]118[/C][/ROW]
[ROW][C]0.66[/C][C]118[/C][C]118.36[/C][C]118[/C][C]118[/C][C]118[/C][C]118[/C][C]119.64[/C][C]118[/C][/ROW]
[ROW][C]0.68[/C][C]119.92[/C][C]120[/C][C]120[/C][C]120[/C][C]120[/C][C]120[/C][C]120[/C][C]120[/C][/ROW]
[ROW][C]0.7[/C][C]120[/C][C]120.1[/C][C]120[/C][C]120[/C][C]120[/C][C]120[/C][C]120.9[/C][C]120[/C][/ROW]
[ROW][C]0.72[/C][C]120.84[/C][C]121[/C][C]121[/C][C]121[/C][C]121[/C][C]121[/C][C]121[/C][C]121[/C][/ROW]
[ROW][C]0.74[/C][C]121.56[/C][C]123[/C][C]123[/C][C]123[/C][C]122.08[/C][C]121[/C][C]123[/C][C]123[/C][/ROW]
[ROW][C]0.76[/C][C]123[/C][C]123.48[/C][C]123[/C][C]123[/C][C]123[/C][C]123[/C][C]123.52[/C][C]123[/C][/ROW]
[ROW][C]0.78[/C][C]124[/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.8[/C][C]124[/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.82[/C][C]124.04[/C][C]124.86[/C][C]125[/C][C]125[/C][C]124.22[/C][C]124[/C][C]124.14[/C][C]125[/C][/ROW]
[ROW][C]0.84[/C][C]125.96[/C][C]127.96[/C][C]127[/C][C]127[/C][C]126.28[/C][C]125[/C][C]129.04[/C][C]127[/C][/ROW]
[ROW][C]0.86[/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.88[/C][C]130.36[/C][C]131.48[/C][C]131[/C][C]131[/C][C]130.48[/C][C]130[/C][C]132.52[/C][C]131[/C][/ROW]
[ROW][C]0.9[/C][C]132.6[/C][C]133.7[/C][C]133[/C][C]133[/C][C]132.8[/C][C]133[/C][C]133.3[/C][C]134[/C][/ROW]
[ROW][C]0.92[/C][C]134.24[/C][C]135.16[/C][C]135[/C][C]135[/C][C]134.32[/C][C]134[/C][C]135.84[/C][C]135[/C][/ROW]
[ROW][C]0.94[/C][C]135.68[/C][C]136.62[/C][C]136[/C][C]136[/C][C]135.74[/C][C]136[/C][C]136.38[/C][C]137[/C][/ROW]
[ROW][C]0.96[/C][C]137.84[/C][C]144.4[/C][C]144[/C][C]144[/C][C]138.12[/C][C]137[/C][C]148.6[/C][C]144[/C][/ROW]
[ROW][C]0.98[/C][C]146.8[/C][C]149.54[/C][C]149[/C][C]149[/C][C]146.9[/C][C]149[/C][C]149.46[/C][C]150[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=177663&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=177663&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.0285.3285.38878789.18485.6284
0.0491.491.69292929287.492
0.0692.3292.389393939292.6292
0.089393939394.36939393
0.19595959595.3959595
0.1296.9297.28989898.529895.7298
0.1499.0899.2210010099.949999.7899
0.16100.52100.68101101101.36101100.32101
0.18101.96102102102102102102102
0.2102102102102102.2102102102
0.22102.84103.12103103104.24103104.88103
0.24105105105105105105105105
0.26105105105105105105105105
0.28105.16105.44106106105.88105105.56105
0.3106106106106106106106106
0.32106.04106.36107107106.72106106.64106
0.34107107107107107107107107
0.36107107.28107107107.56107107.72107
0.38108108108108108108108108
0.4108.8109109109109109109109
0.42109109109109109109109109
0.44109109.12109109109.24109109.88109
0.46110.12110.58111111110.66110110.42111
0.48111111.04111111111.08111111.96111
0.5112112112112112112112112
0.52112.44112.96113113112.92112112.04113
0.54113.88114114114114114114114
0.56114.32114.88115115114.76114114.12115
0.58115.76116116116116116116116
0.6116.2116.8117117116.6116116.2117
0.62117117117117117117117117
0.64117.08117.72118118117.44117117.28118
0.66118118.36118118118118119.64118
0.68119.92120120120120120120120
0.7120120.1120120120120120.9120
0.72120.84121121121121121121121
0.74121.56123123123122.08121123123
0.76123123.48123123123123123.52123
0.78124124124124124124124124
0.8124124124124124124124124
0.82124.04124.86125125124.22124124.14125
0.84125.96127.96127127126.28125129.04127
0.86129.76130130130130130130130
0.88130.36131.48131131130.48130132.52131
0.9132.6133.7133133132.8133133.3134
0.92134.24135.16135135134.32134135.84135
0.94135.68136.62136136135.74136136.38137
0.96137.84144.4144144138.12137148.6144
0.98146.8149.54149149146.9149149.46150



Parameters (Session):
par1 = 0.01 ; par2 = 0.09 ; par3 = 0.01 ;
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)
qqline(x)
grid()
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')