Free Statistics

of Irreproducible Research!

Author's title

Author*The author of this computation has been verified*
R Software Modulerwasp_percentiles.wasp
Title produced by softwarePercentiles
Date of computationSun, 18 Oct 2009 09:22:43 -0600
Cite this page as followsStatistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?v=date/2009/Oct/18/t1255879627gaj4w7q8n1j9vef.htm/, Retrieved Mon, 29 Apr 2024 12:11:54 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=47362, Retrieved Mon, 29 Apr 2024 12:11:54 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact147
Family? (F = Feedback message, R = changed R code, M = changed R Module, P = changed Parameters, D = changed Data)
F     [Univariate Data Series] [Gemiddelde renden...] [2008-10-13 19:42:56] [86c69698417c3ad89592e76776a2c65b]
-   PD  [Univariate Data Series] [Werkloosheid in BE] [2009-10-11 19:20:59] [5c968c05ca472afa314d272082b56b09]
-   PD    [Univariate Data Series] [Y[t]-X[t]=c+e[t]] [2009-10-18 14:49:48] [5c968c05ca472afa314d272082b56b09]
- RM          [Percentiles] [Confidence interv...] [2009-10-18 15:22:43] [b8ce264f75295a954feffaf60221d1b0] [Current]
Feedback Forum

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




Summary of computational 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 computational 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=47362&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]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=47362&T=0

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=47362&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 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.8893.92959596.269394.0893
0.0497.6497.76989898.849895.2498
0.0699.96100.14102102102.2699100.8699
0.08102.76102.84103103104.36103102.16103
0.1105105105105105.1105105105
0.12105.64105.76106106106.52106105.24106
0.14107.16107.44109109108.88107108.56107
0.16110.04110.36111111111111109.64111
0.18111111111111111111111111
0.2111111111111111.2111111111
0.22111.84112112112112112112112
0.24112.28112.52113113113112112.48113
0.26113113113113113113113113
0.28113.16113.44114114113.88113113.56113
0.3114114114114114.3114114114
0.32115115115115115115115115
0.34115.48115.82116116116.14115115.18116
0.36116.92117117117117117117117
0.38117117117117117117117117
0.4117.8118.4118118118.8118119.6118
0.42120.48121.32122122121.64120120.68122
0.44122.68123123123123123123123
0.46123123123123123123123123
0.48123.56124124124124124124124
0.5124124.5124124.5124.5124124.5124.5
0.52125125125125125125125125
0.54125.88126.42126126126.34126126.58126
0.56127.32127.88128128127.76127127.12128
0.58129.52130130130130130130130
0.6130.2130.8131131130.6130130.2131
0.62131.64132.26132132132.02132132.74132
0.64133.08133.72134134133.44133133.28134
0.66134.52135.18135135134.86135135.82135
0.68135.96136136136136136136136
0.7136.4137137137136.7136137137
0.72137137137137137137137137
0.74137.56139139139138.08137139139
0.76139141.4139139139139141.6139
0.78144.48146.82147147145.14144144.18147
0.8147147147147147147147147
0.82147147147147147147147147
0.84147.96149149149148.28147149149
0.86149149149149149149149149
0.88149.36150150150149.48149150150
0.9150152.1150150150150150.9153
0.92153.96157157157154.28153157157
0.94157157.62157157157157157.38158
0.96158.12159.16159159158.16158160.84159
0.98160.12161.54161161160.16161161.46162

\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.88 & 93.92 & 95 & 95 & 96.26 & 93 & 94.08 & 93 \tabularnewline
0.04 & 97.64 & 97.76 & 98 & 98 & 98.84 & 98 & 95.24 & 98 \tabularnewline
0.06 & 99.96 & 100.14 & 102 & 102 & 102.26 & 99 & 100.86 & 99 \tabularnewline
0.08 & 102.76 & 102.84 & 103 & 103 & 104.36 & 103 & 102.16 & 103 \tabularnewline
0.1 & 105 & 105 & 105 & 105 & 105.1 & 105 & 105 & 105 \tabularnewline
0.12 & 105.64 & 105.76 & 106 & 106 & 106.52 & 106 & 105.24 & 106 \tabularnewline
0.14 & 107.16 & 107.44 & 109 & 109 & 108.88 & 107 & 108.56 & 107 \tabularnewline
0.16 & 110.04 & 110.36 & 111 & 111 & 111 & 111 & 109.64 & 111 \tabularnewline
0.18 & 111 & 111 & 111 & 111 & 111 & 111 & 111 & 111 \tabularnewline
0.2 & 111 & 111 & 111 & 111 & 111.2 & 111 & 111 & 111 \tabularnewline
0.22 & 111.84 & 112 & 112 & 112 & 112 & 112 & 112 & 112 \tabularnewline
0.24 & 112.28 & 112.52 & 113 & 113 & 113 & 112 & 112.48 & 113 \tabularnewline
0.26 & 113 & 113 & 113 & 113 & 113 & 113 & 113 & 113 \tabularnewline
0.28 & 113.16 & 113.44 & 114 & 114 & 113.88 & 113 & 113.56 & 113 \tabularnewline
0.3 & 114 & 114 & 114 & 114 & 114.3 & 114 & 114 & 114 \tabularnewline
0.32 & 115 & 115 & 115 & 115 & 115 & 115 & 115 & 115 \tabularnewline
0.34 & 115.48 & 115.82 & 116 & 116 & 116.14 & 115 & 115.18 & 116 \tabularnewline
0.36 & 116.92 & 117 & 117 & 117 & 117 & 117 & 117 & 117 \tabularnewline
0.38 & 117 & 117 & 117 & 117 & 117 & 117 & 117 & 117 \tabularnewline
0.4 & 117.8 & 118.4 & 118 & 118 & 118.8 & 118 & 119.6 & 118 \tabularnewline
0.42 & 120.48 & 121.32 & 122 & 122 & 121.64 & 120 & 120.68 & 122 \tabularnewline
0.44 & 122.68 & 123 & 123 & 123 & 123 & 123 & 123 & 123 \tabularnewline
0.46 & 123 & 123 & 123 & 123 & 123 & 123 & 123 & 123 \tabularnewline
0.48 & 123.56 & 124 & 124 & 124 & 124 & 124 & 124 & 124 \tabularnewline
0.5 & 124 & 124.5 & 124 & 124.5 & 124.5 & 124 & 124.5 & 124.5 \tabularnewline
0.52 & 125 & 125 & 125 & 125 & 125 & 125 & 125 & 125 \tabularnewline
0.54 & 125.88 & 126.42 & 126 & 126 & 126.34 & 126 & 126.58 & 126 \tabularnewline
0.56 & 127.32 & 127.88 & 128 & 128 & 127.76 & 127 & 127.12 & 128 \tabularnewline
0.58 & 129.52 & 130 & 130 & 130 & 130 & 130 & 130 & 130 \tabularnewline
0.6 & 130.2 & 130.8 & 131 & 131 & 130.6 & 130 & 130.2 & 131 \tabularnewline
0.62 & 131.64 & 132.26 & 132 & 132 & 132.02 & 132 & 132.74 & 132 \tabularnewline
0.64 & 133.08 & 133.72 & 134 & 134 & 133.44 & 133 & 133.28 & 134 \tabularnewline
0.66 & 134.52 & 135.18 & 135 & 135 & 134.86 & 135 & 135.82 & 135 \tabularnewline
0.68 & 135.96 & 136 & 136 & 136 & 136 & 136 & 136 & 136 \tabularnewline
0.7 & 136.4 & 137 & 137 & 137 & 136.7 & 136 & 137 & 137 \tabularnewline
0.72 & 137 & 137 & 137 & 137 & 137 & 137 & 137 & 137 \tabularnewline
0.74 & 137.56 & 139 & 139 & 139 & 138.08 & 137 & 139 & 139 \tabularnewline
0.76 & 139 & 141.4 & 139 & 139 & 139 & 139 & 141.6 & 139 \tabularnewline
0.78 & 144.48 & 146.82 & 147 & 147 & 145.14 & 144 & 144.18 & 147 \tabularnewline
0.8 & 147 & 147 & 147 & 147 & 147 & 147 & 147 & 147 \tabularnewline
0.82 & 147 & 147 & 147 & 147 & 147 & 147 & 147 & 147 \tabularnewline
0.84 & 147.96 & 149 & 149 & 149 & 148.28 & 147 & 149 & 149 \tabularnewline
0.86 & 149 & 149 & 149 & 149 & 149 & 149 & 149 & 149 \tabularnewline
0.88 & 149.36 & 150 & 150 & 150 & 149.48 & 149 & 150 & 150 \tabularnewline
0.9 & 150 & 152.1 & 150 & 150 & 150 & 150 & 150.9 & 153 \tabularnewline
0.92 & 153.96 & 157 & 157 & 157 & 154.28 & 153 & 157 & 157 \tabularnewline
0.94 & 157 & 157.62 & 157 & 157 & 157 & 157 & 157.38 & 158 \tabularnewline
0.96 & 158.12 & 159.16 & 159 & 159 & 158.16 & 158 & 160.84 & 159 \tabularnewline
0.98 & 160.12 & 161.54 & 161 & 161 & 160.16 & 161 & 161.46 & 162 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=47362&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.88[/C][C]93.92[/C][C]95[/C][C]95[/C][C]96.26[/C][C]93[/C][C]94.08[/C][C]93[/C][/ROW]
[ROW][C]0.04[/C][C]97.64[/C][C]97.76[/C][C]98[/C][C]98[/C][C]98.84[/C][C]98[/C][C]95.24[/C][C]98[/C][/ROW]
[ROW][C]0.06[/C][C]99.96[/C][C]100.14[/C][C]102[/C][C]102[/C][C]102.26[/C][C]99[/C][C]100.86[/C][C]99[/C][/ROW]
[ROW][C]0.08[/C][C]102.76[/C][C]102.84[/C][C]103[/C][C]103[/C][C]104.36[/C][C]103[/C][C]102.16[/C][C]103[/C][/ROW]
[ROW][C]0.1[/C][C]105[/C][C]105[/C][C]105[/C][C]105[/C][C]105.1[/C][C]105[/C][C]105[/C][C]105[/C][/ROW]
[ROW][C]0.12[/C][C]105.64[/C][C]105.76[/C][C]106[/C][C]106[/C][C]106.52[/C][C]106[/C][C]105.24[/C][C]106[/C][/ROW]
[ROW][C]0.14[/C][C]107.16[/C][C]107.44[/C][C]109[/C][C]109[/C][C]108.88[/C][C]107[/C][C]108.56[/C][C]107[/C][/ROW]
[ROW][C]0.16[/C][C]110.04[/C][C]110.36[/C][C]111[/C][C]111[/C][C]111[/C][C]111[/C][C]109.64[/C][C]111[/C][/ROW]
[ROW][C]0.18[/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.2[/C][C]111[/C][C]111[/C][C]111[/C][C]111[/C][C]111.2[/C][C]111[/C][C]111[/C][C]111[/C][/ROW]
[ROW][C]0.22[/C][C]111.84[/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.24[/C][C]112.28[/C][C]112.52[/C][C]113[/C][C]113[/C][C]113[/C][C]112[/C][C]112.48[/C][C]113[/C][/ROW]
[ROW][C]0.26[/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.28[/C][C]113.16[/C][C]113.44[/C][C]114[/C][C]114[/C][C]113.88[/C][C]113[/C][C]113.56[/C][C]113[/C][/ROW]
[ROW][C]0.3[/C][C]114[/C][C]114[/C][C]114[/C][C]114[/C][C]114.3[/C][C]114[/C][C]114[/C][C]114[/C][/ROW]
[ROW][C]0.32[/C][C]115[/C][C]115[/C][C]115[/C][C]115[/C][C]115[/C][C]115[/C][C]115[/C][C]115[/C][/ROW]
[ROW][C]0.34[/C][C]115.48[/C][C]115.82[/C][C]116[/C][C]116[/C][C]116.14[/C][C]115[/C][C]115.18[/C][C]116[/C][/ROW]
[ROW][C]0.36[/C][C]116.92[/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[/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.4[/C][C]117.8[/C][C]118.4[/C][C]118[/C][C]118[/C][C]118.8[/C][C]118[/C][C]119.6[/C][C]118[/C][/ROW]
[ROW][C]0.42[/C][C]120.48[/C][C]121.32[/C][C]122[/C][C]122[/C][C]121.64[/C][C]120[/C][C]120.68[/C][C]122[/C][/ROW]
[ROW][C]0.44[/C][C]122.68[/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[/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.48[/C][C]123.56[/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.5[/C][C]124[/C][C]124.5[/C][C]124[/C][C]124.5[/C][C]124.5[/C][C]124[/C][C]124.5[/C][C]124.5[/C][/ROW]
[ROW][C]0.52[/C][C]125[/C][C]125[/C][C]125[/C][C]125[/C][C]125[/C][C]125[/C][C]125[/C][C]125[/C][/ROW]
[ROW][C]0.54[/C][C]125.88[/C][C]126.42[/C][C]126[/C][C]126[/C][C]126.34[/C][C]126[/C][C]126.58[/C][C]126[/C][/ROW]
[ROW][C]0.56[/C][C]127.32[/C][C]127.88[/C][C]128[/C][C]128[/C][C]127.76[/C][C]127[/C][C]127.12[/C][C]128[/C][/ROW]
[ROW][C]0.58[/C][C]129.52[/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]130.2[/C][C]130.8[/C][C]131[/C][C]131[/C][C]130.6[/C][C]130[/C][C]130.2[/C][C]131[/C][/ROW]
[ROW][C]0.62[/C][C]131.64[/C][C]132.26[/C][C]132[/C][C]132[/C][C]132.02[/C][C]132[/C][C]132.74[/C][C]132[/C][/ROW]
[ROW][C]0.64[/C][C]133.08[/C][C]133.72[/C][C]134[/C][C]134[/C][C]133.44[/C][C]133[/C][C]133.28[/C][C]134[/C][/ROW]
[ROW][C]0.66[/C][C]134.52[/C][C]135.18[/C][C]135[/C][C]135[/C][C]134.86[/C][C]135[/C][C]135.82[/C][C]135[/C][/ROW]
[ROW][C]0.68[/C][C]135.96[/C][C]136[/C][C]136[/C][C]136[/C][C]136[/C][C]136[/C][C]136[/C][C]136[/C][/ROW]
[ROW][C]0.7[/C][C]136.4[/C][C]137[/C][C]137[/C][C]137[/C][C]136.7[/C][C]136[/C][C]137[/C][C]137[/C][/ROW]
[ROW][C]0.72[/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.74[/C][C]137.56[/C][C]139[/C][C]139[/C][C]139[/C][C]138.08[/C][C]137[/C][C]139[/C][C]139[/C][/ROW]
[ROW][C]0.76[/C][C]139[/C][C]141.4[/C][C]139[/C][C]139[/C][C]139[/C][C]139[/C][C]141.6[/C][C]139[/C][/ROW]
[ROW][C]0.78[/C][C]144.48[/C][C]146.82[/C][C]147[/C][C]147[/C][C]145.14[/C][C]144[/C][C]144.18[/C][C]147[/C][/ROW]
[ROW][C]0.8[/C][C]147[/C][C]147[/C][C]147[/C][C]147[/C][C]147[/C][C]147[/C][C]147[/C][C]147[/C][/ROW]
[ROW][C]0.82[/C][C]147[/C][C]147[/C][C]147[/C][C]147[/C][C]147[/C][C]147[/C][C]147[/C][C]147[/C][/ROW]
[ROW][C]0.84[/C][C]147.96[/C][C]149[/C][C]149[/C][C]149[/C][C]148.28[/C][C]147[/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.36[/C][C]150[/C][C]150[/C][C]150[/C][C]149.48[/C][C]149[/C][C]150[/C][C]150[/C][/ROW]
[ROW][C]0.9[/C][C]150[/C][C]152.1[/C][C]150[/C][C]150[/C][C]150[/C][C]150[/C][C]150.9[/C][C]153[/C][/ROW]
[ROW][C]0.92[/C][C]153.96[/C][C]157[/C][C]157[/C][C]157[/C][C]154.28[/C][C]153[/C][C]157[/C][C]157[/C][/ROW]
[ROW][C]0.94[/C][C]157[/C][C]157.62[/C][C]157[/C][C]157[/C][C]157[/C][C]157[/C][C]157.38[/C][C]158[/C][/ROW]
[ROW][C]0.96[/C][C]158.12[/C][C]159.16[/C][C]159[/C][C]159[/C][C]158.16[/C][C]158[/C][C]160.84[/C][C]159[/C][/ROW]
[ROW][C]0.98[/C][C]160.12[/C][C]161.54[/C][C]161[/C][C]161[/C][C]160.16[/C][C]161[/C][C]161.46[/C][C]162[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=47362&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=47362&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.8893.92959596.269394.0893
0.0497.6497.76989898.849895.2498
0.0699.96100.14102102102.2699100.8699
0.08102.76102.84103103104.36103102.16103
0.1105105105105105.1105105105
0.12105.64105.76106106106.52106105.24106
0.14107.16107.44109109108.88107108.56107
0.16110.04110.36111111111111109.64111
0.18111111111111111111111111
0.2111111111111111.2111111111
0.22111.84112112112112112112112
0.24112.28112.52113113113112112.48113
0.26113113113113113113113113
0.28113.16113.44114114113.88113113.56113
0.3114114114114114.3114114114
0.32115115115115115115115115
0.34115.48115.82116116116.14115115.18116
0.36116.92117117117117117117117
0.38117117117117117117117117
0.4117.8118.4118118118.8118119.6118
0.42120.48121.32122122121.64120120.68122
0.44122.68123123123123123123123
0.46123123123123123123123123
0.48123.56124124124124124124124
0.5124124.5124124.5124.5124124.5124.5
0.52125125125125125125125125
0.54125.88126.42126126126.34126126.58126
0.56127.32127.88128128127.76127127.12128
0.58129.52130130130130130130130
0.6130.2130.8131131130.6130130.2131
0.62131.64132.26132132132.02132132.74132
0.64133.08133.72134134133.44133133.28134
0.66134.52135.18135135134.86135135.82135
0.68135.96136136136136136136136
0.7136.4137137137136.7136137137
0.72137137137137137137137137
0.74137.56139139139138.08137139139
0.76139141.4139139139139141.6139
0.78144.48146.82147147145.14144144.18147
0.8147147147147147147147147
0.82147147147147147147147147
0.84147.96149149149148.28147149149
0.86149149149149149149149149
0.88149.36150150150149.48149150150
0.9150152.1150150150150150.9153
0.92153.96157157157154.28153157157
0.94157157.62157157157157157.38158
0.96158.12159.16159159158.16158160.84159
0.98160.12161.54161161160.16161161.46162



Parameters (Session):
par1 = 0.01 ; par2 = 0.99 ; par3 = 0.005 ;
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')