Free Statistics

of Irreproducible Research!

Author's title

Author*Unverified author*
R Software Modulerwasp_percentiles.wasp
Title produced by softwarePercentiles
Date of computationMon, 09 Nov 2009 11:48:12 -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/2009/Nov/09/t1257798074qtncoeeu8d93mym.htm/, Retrieved Sat, 20 Apr 2024 06:12:37 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=55004, Retrieved Sat, 20 Apr 2024 06:12:37 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact150
Family? (F = Feedback message, R = changed R code, M = changed R Module, P = changed Parameters, D = changed Data)
-       [Percentiles] [totale bruto schu...] [2009-11-09 18:48:12] [8f072ead2c7c0b3cf3fdae49bab9dd9b] [Current]
Feedback Forum

Post a new message
Dataseries X:
269
270
271
267
271
270
271
270
271
267
264
266
269
269
272
268
268
271
273
273
270
271
270
269
274
274
277
275
271
271
271
274
274
272
273
271
274
275
281
278
280
283
280
282
290
284
288
285
288
290
289
288
290
290
288
289
295
305
309
310
322




Summary of computational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time2 seconds
R Server'RServer@AstonUniversity' @ vre.aston.ac.uk

\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 & 'RServer@AstonUniversity' @ vre.aston.ac.uk \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=55004&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]'RServer@AstonUniversity' @ vre.aston.ac.uk[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=55004&T=0

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







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.02264.44264.48266266266.2264265.52264
0.04266.44266.48267267267266266.52266
0.06267267267267267.6267267267
0.08267.88267.96268268268268267.04268
0.1268.1268.2269269269268268.8268
0.12269269269269269269269269
0.14269269269269269269269269
0.16269269269269269.6269269269
0.18269.98270270270270270270270
0.2270270270270270270270270
0.22270270270270270270270270
0.24270270270270270.4270270270
0.26270.86271271271271271271271
0.28271271271271271271271271
0.3271271271271271271271271
0.32271271271271271271271271
0.34271271271271271271271271
0.36271271271271271271271271
0.38271271271271271271271271
0.4271271271271271271271271
0.42271.62272272272272272272272
0.44272272.28272272272.4272272.72272
0.46273273273273273273273273
0.48273273273273273273273273
0.5273.5274274274274274274274
0.52274274274274274274274274
0.54274274274274274274274274
0.56274274274274274274274274
0.58274.38274.96275275274.8274274.04275
0.6275275.4275275275275276.6275
0.62276.64277.44277277277.2277277.56277
0.64278.08279.36280280278.8278278.64280
0.66280280280280280280280280
0.68280.48281.16281281280.8280281.84281
0.7281.7282.4282282282282282.6282
0.72282.92283.64283283283.2283283.36284
0.74284.14284.88285285284.4284284.12285
0.76286.08288288288286.8285288288
0.78288288288288288288288288
0.8288288288288288288288288
0.82288.02288.84289289288.2288288.16289
0.84289289.08289289289289289.92289
0.86289.46290290290289.6289290290
0.88290290290290290290290290
0.9290290290290290290290290
0.92290.6295.4295295291290304.6295
0.94298.4306.12305305299295307.88305
0.96307.24309.52309309307.4309309.48310
0.98309.78319.12310310309.8310312.88322

\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 & 264.44 & 264.48 & 266 & 266 & 266.2 & 264 & 265.52 & 264 \tabularnewline
0.04 & 266.44 & 266.48 & 267 & 267 & 267 & 266 & 266.52 & 266 \tabularnewline
0.06 & 267 & 267 & 267 & 267 & 267.6 & 267 & 267 & 267 \tabularnewline
0.08 & 267.88 & 267.96 & 268 & 268 & 268 & 268 & 267.04 & 268 \tabularnewline
0.1 & 268.1 & 268.2 & 269 & 269 & 269 & 268 & 268.8 & 268 \tabularnewline
0.12 & 269 & 269 & 269 & 269 & 269 & 269 & 269 & 269 \tabularnewline
0.14 & 269 & 269 & 269 & 269 & 269 & 269 & 269 & 269 \tabularnewline
0.16 & 269 & 269 & 269 & 269 & 269.6 & 269 & 269 & 269 \tabularnewline
0.18 & 269.98 & 270 & 270 & 270 & 270 & 270 & 270 & 270 \tabularnewline
0.2 & 270 & 270 & 270 & 270 & 270 & 270 & 270 & 270 \tabularnewline
0.22 & 270 & 270 & 270 & 270 & 270 & 270 & 270 & 270 \tabularnewline
0.24 & 270 & 270 & 270 & 270 & 270.4 & 270 & 270 & 270 \tabularnewline
0.26 & 270.86 & 271 & 271 & 271 & 271 & 271 & 271 & 271 \tabularnewline
0.28 & 271 & 271 & 271 & 271 & 271 & 271 & 271 & 271 \tabularnewline
0.3 & 271 & 271 & 271 & 271 & 271 & 271 & 271 & 271 \tabularnewline
0.32 & 271 & 271 & 271 & 271 & 271 & 271 & 271 & 271 \tabularnewline
0.34 & 271 & 271 & 271 & 271 & 271 & 271 & 271 & 271 \tabularnewline
0.36 & 271 & 271 & 271 & 271 & 271 & 271 & 271 & 271 \tabularnewline
0.38 & 271 & 271 & 271 & 271 & 271 & 271 & 271 & 271 \tabularnewline
0.4 & 271 & 271 & 271 & 271 & 271 & 271 & 271 & 271 \tabularnewline
0.42 & 271.62 & 272 & 272 & 272 & 272 & 272 & 272 & 272 \tabularnewline
0.44 & 272 & 272.28 & 272 & 272 & 272.4 & 272 & 272.72 & 272 \tabularnewline
0.46 & 273 & 273 & 273 & 273 & 273 & 273 & 273 & 273 \tabularnewline
0.48 & 273 & 273 & 273 & 273 & 273 & 273 & 273 & 273 \tabularnewline
0.5 & 273.5 & 274 & 274 & 274 & 274 & 274 & 274 & 274 \tabularnewline
0.52 & 274 & 274 & 274 & 274 & 274 & 274 & 274 & 274 \tabularnewline
0.54 & 274 & 274 & 274 & 274 & 274 & 274 & 274 & 274 \tabularnewline
0.56 & 274 & 274 & 274 & 274 & 274 & 274 & 274 & 274 \tabularnewline
0.58 & 274.38 & 274.96 & 275 & 275 & 274.8 & 274 & 274.04 & 275 \tabularnewline
0.6 & 275 & 275.4 & 275 & 275 & 275 & 275 & 276.6 & 275 \tabularnewline
0.62 & 276.64 & 277.44 & 277 & 277 & 277.2 & 277 & 277.56 & 277 \tabularnewline
0.64 & 278.08 & 279.36 & 280 & 280 & 278.8 & 278 & 278.64 & 280 \tabularnewline
0.66 & 280 & 280 & 280 & 280 & 280 & 280 & 280 & 280 \tabularnewline
0.68 & 280.48 & 281.16 & 281 & 281 & 280.8 & 280 & 281.84 & 281 \tabularnewline
0.7 & 281.7 & 282.4 & 282 & 282 & 282 & 282 & 282.6 & 282 \tabularnewline
0.72 & 282.92 & 283.64 & 283 & 283 & 283.2 & 283 & 283.36 & 284 \tabularnewline
0.74 & 284.14 & 284.88 & 285 & 285 & 284.4 & 284 & 284.12 & 285 \tabularnewline
0.76 & 286.08 & 288 & 288 & 288 & 286.8 & 285 & 288 & 288 \tabularnewline
0.78 & 288 & 288 & 288 & 288 & 288 & 288 & 288 & 288 \tabularnewline
0.8 & 288 & 288 & 288 & 288 & 288 & 288 & 288 & 288 \tabularnewline
0.82 & 288.02 & 288.84 & 289 & 289 & 288.2 & 288 & 288.16 & 289 \tabularnewline
0.84 & 289 & 289.08 & 289 & 289 & 289 & 289 & 289.92 & 289 \tabularnewline
0.86 & 289.46 & 290 & 290 & 290 & 289.6 & 289 & 290 & 290 \tabularnewline
0.88 & 290 & 290 & 290 & 290 & 290 & 290 & 290 & 290 \tabularnewline
0.9 & 290 & 290 & 290 & 290 & 290 & 290 & 290 & 290 \tabularnewline
0.92 & 290.6 & 295.4 & 295 & 295 & 291 & 290 & 304.6 & 295 \tabularnewline
0.94 & 298.4 & 306.12 & 305 & 305 & 299 & 295 & 307.88 & 305 \tabularnewline
0.96 & 307.24 & 309.52 & 309 & 309 & 307.4 & 309 & 309.48 & 310 \tabularnewline
0.98 & 309.78 & 319.12 & 310 & 310 & 309.8 & 310 & 312.88 & 322 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=55004&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]264.44[/C][C]264.48[/C][C]266[/C][C]266[/C][C]266.2[/C][C]264[/C][C]265.52[/C][C]264[/C][/ROW]
[ROW][C]0.04[/C][C]266.44[/C][C]266.48[/C][C]267[/C][C]267[/C][C]267[/C][C]266[/C][C]266.52[/C][C]266[/C][/ROW]
[ROW][C]0.06[/C][C]267[/C][C]267[/C][C]267[/C][C]267[/C][C]267.6[/C][C]267[/C][C]267[/C][C]267[/C][/ROW]
[ROW][C]0.08[/C][C]267.88[/C][C]267.96[/C][C]268[/C][C]268[/C][C]268[/C][C]268[/C][C]267.04[/C][C]268[/C][/ROW]
[ROW][C]0.1[/C][C]268.1[/C][C]268.2[/C][C]269[/C][C]269[/C][C]269[/C][C]268[/C][C]268.8[/C][C]268[/C][/ROW]
[ROW][C]0.12[/C][C]269[/C][C]269[/C][C]269[/C][C]269[/C][C]269[/C][C]269[/C][C]269[/C][C]269[/C][/ROW]
[ROW][C]0.14[/C][C]269[/C][C]269[/C][C]269[/C][C]269[/C][C]269[/C][C]269[/C][C]269[/C][C]269[/C][/ROW]
[ROW][C]0.16[/C][C]269[/C][C]269[/C][C]269[/C][C]269[/C][C]269.6[/C][C]269[/C][C]269[/C][C]269[/C][/ROW]
[ROW][C]0.18[/C][C]269.98[/C][C]270[/C][C]270[/C][C]270[/C][C]270[/C][C]270[/C][C]270[/C][C]270[/C][/ROW]
[ROW][C]0.2[/C][C]270[/C][C]270[/C][C]270[/C][C]270[/C][C]270[/C][C]270[/C][C]270[/C][C]270[/C][/ROW]
[ROW][C]0.22[/C][C]270[/C][C]270[/C][C]270[/C][C]270[/C][C]270[/C][C]270[/C][C]270[/C][C]270[/C][/ROW]
[ROW][C]0.24[/C][C]270[/C][C]270[/C][C]270[/C][C]270[/C][C]270.4[/C][C]270[/C][C]270[/C][C]270[/C][/ROW]
[ROW][C]0.26[/C][C]270.86[/C][C]271[/C][C]271[/C][C]271[/C][C]271[/C][C]271[/C][C]271[/C][C]271[/C][/ROW]
[ROW][C]0.28[/C][C]271[/C][C]271[/C][C]271[/C][C]271[/C][C]271[/C][C]271[/C][C]271[/C][C]271[/C][/ROW]
[ROW][C]0.3[/C][C]271[/C][C]271[/C][C]271[/C][C]271[/C][C]271[/C][C]271[/C][C]271[/C][C]271[/C][/ROW]
[ROW][C]0.32[/C][C]271[/C][C]271[/C][C]271[/C][C]271[/C][C]271[/C][C]271[/C][C]271[/C][C]271[/C][/ROW]
[ROW][C]0.34[/C][C]271[/C][C]271[/C][C]271[/C][C]271[/C][C]271[/C][C]271[/C][C]271[/C][C]271[/C][/ROW]
[ROW][C]0.36[/C][C]271[/C][C]271[/C][C]271[/C][C]271[/C][C]271[/C][C]271[/C][C]271[/C][C]271[/C][/ROW]
[ROW][C]0.38[/C][C]271[/C][C]271[/C][C]271[/C][C]271[/C][C]271[/C][C]271[/C][C]271[/C][C]271[/C][/ROW]
[ROW][C]0.4[/C][C]271[/C][C]271[/C][C]271[/C][C]271[/C][C]271[/C][C]271[/C][C]271[/C][C]271[/C][/ROW]
[ROW][C]0.42[/C][C]271.62[/C][C]272[/C][C]272[/C][C]272[/C][C]272[/C][C]272[/C][C]272[/C][C]272[/C][/ROW]
[ROW][C]0.44[/C][C]272[/C][C]272.28[/C][C]272[/C][C]272[/C][C]272.4[/C][C]272[/C][C]272.72[/C][C]272[/C][/ROW]
[ROW][C]0.46[/C][C]273[/C][C]273[/C][C]273[/C][C]273[/C][C]273[/C][C]273[/C][C]273[/C][C]273[/C][/ROW]
[ROW][C]0.48[/C][C]273[/C][C]273[/C][C]273[/C][C]273[/C][C]273[/C][C]273[/C][C]273[/C][C]273[/C][/ROW]
[ROW][C]0.5[/C][C]273.5[/C][C]274[/C][C]274[/C][C]274[/C][C]274[/C][C]274[/C][C]274[/C][C]274[/C][/ROW]
[ROW][C]0.52[/C][C]274[/C][C]274[/C][C]274[/C][C]274[/C][C]274[/C][C]274[/C][C]274[/C][C]274[/C][/ROW]
[ROW][C]0.54[/C][C]274[/C][C]274[/C][C]274[/C][C]274[/C][C]274[/C][C]274[/C][C]274[/C][C]274[/C][/ROW]
[ROW][C]0.56[/C][C]274[/C][C]274[/C][C]274[/C][C]274[/C][C]274[/C][C]274[/C][C]274[/C][C]274[/C][/ROW]
[ROW][C]0.58[/C][C]274.38[/C][C]274.96[/C][C]275[/C][C]275[/C][C]274.8[/C][C]274[/C][C]274.04[/C][C]275[/C][/ROW]
[ROW][C]0.6[/C][C]275[/C][C]275.4[/C][C]275[/C][C]275[/C][C]275[/C][C]275[/C][C]276.6[/C][C]275[/C][/ROW]
[ROW][C]0.62[/C][C]276.64[/C][C]277.44[/C][C]277[/C][C]277[/C][C]277.2[/C][C]277[/C][C]277.56[/C][C]277[/C][/ROW]
[ROW][C]0.64[/C][C]278.08[/C][C]279.36[/C][C]280[/C][C]280[/C][C]278.8[/C][C]278[/C][C]278.64[/C][C]280[/C][/ROW]
[ROW][C]0.66[/C][C]280[/C][C]280[/C][C]280[/C][C]280[/C][C]280[/C][C]280[/C][C]280[/C][C]280[/C][/ROW]
[ROW][C]0.68[/C][C]280.48[/C][C]281.16[/C][C]281[/C][C]281[/C][C]280.8[/C][C]280[/C][C]281.84[/C][C]281[/C][/ROW]
[ROW][C]0.7[/C][C]281.7[/C][C]282.4[/C][C]282[/C][C]282[/C][C]282[/C][C]282[/C][C]282.6[/C][C]282[/C][/ROW]
[ROW][C]0.72[/C][C]282.92[/C][C]283.64[/C][C]283[/C][C]283[/C][C]283.2[/C][C]283[/C][C]283.36[/C][C]284[/C][/ROW]
[ROW][C]0.74[/C][C]284.14[/C][C]284.88[/C][C]285[/C][C]285[/C][C]284.4[/C][C]284[/C][C]284.12[/C][C]285[/C][/ROW]
[ROW][C]0.76[/C][C]286.08[/C][C]288[/C][C]288[/C][C]288[/C][C]286.8[/C][C]285[/C][C]288[/C][C]288[/C][/ROW]
[ROW][C]0.78[/C][C]288[/C][C]288[/C][C]288[/C][C]288[/C][C]288[/C][C]288[/C][C]288[/C][C]288[/C][/ROW]
[ROW][C]0.8[/C][C]288[/C][C]288[/C][C]288[/C][C]288[/C][C]288[/C][C]288[/C][C]288[/C][C]288[/C][/ROW]
[ROW][C]0.82[/C][C]288.02[/C][C]288.84[/C][C]289[/C][C]289[/C][C]288.2[/C][C]288[/C][C]288.16[/C][C]289[/C][/ROW]
[ROW][C]0.84[/C][C]289[/C][C]289.08[/C][C]289[/C][C]289[/C][C]289[/C][C]289[/C][C]289.92[/C][C]289[/C][/ROW]
[ROW][C]0.86[/C][C]289.46[/C][C]290[/C][C]290[/C][C]290[/C][C]289.6[/C][C]289[/C][C]290[/C][C]290[/C][/ROW]
[ROW][C]0.88[/C][C]290[/C][C]290[/C][C]290[/C][C]290[/C][C]290[/C][C]290[/C][C]290[/C][C]290[/C][/ROW]
[ROW][C]0.9[/C][C]290[/C][C]290[/C][C]290[/C][C]290[/C][C]290[/C][C]290[/C][C]290[/C][C]290[/C][/ROW]
[ROW][C]0.92[/C][C]290.6[/C][C]295.4[/C][C]295[/C][C]295[/C][C]291[/C][C]290[/C][C]304.6[/C][C]295[/C][/ROW]
[ROW][C]0.94[/C][C]298.4[/C][C]306.12[/C][C]305[/C][C]305[/C][C]299[/C][C]295[/C][C]307.88[/C][C]305[/C][/ROW]
[ROW][C]0.96[/C][C]307.24[/C][C]309.52[/C][C]309[/C][C]309[/C][C]307.4[/C][C]309[/C][C]309.48[/C][C]310[/C][/ROW]
[ROW][C]0.98[/C][C]309.78[/C][C]319.12[/C][C]310[/C][C]310[/C][C]309.8[/C][C]310[/C][C]312.88[/C][C]322[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=55004&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=55004&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.02264.44264.48266266266.2264265.52264
0.04266.44266.48267267267266266.52266
0.06267267267267267.6267267267
0.08267.88267.96268268268268267.04268
0.1268.1268.2269269269268268.8268
0.12269269269269269269269269
0.14269269269269269269269269
0.16269269269269269.6269269269
0.18269.98270270270270270270270
0.2270270270270270270270270
0.22270270270270270270270270
0.24270270270270270.4270270270
0.26270.86271271271271271271271
0.28271271271271271271271271
0.3271271271271271271271271
0.32271271271271271271271271
0.34271271271271271271271271
0.36271271271271271271271271
0.38271271271271271271271271
0.4271271271271271271271271
0.42271.62272272272272272272272
0.44272272.28272272272.4272272.72272
0.46273273273273273273273273
0.48273273273273273273273273
0.5273.5274274274274274274274
0.52274274274274274274274274
0.54274274274274274274274274
0.56274274274274274274274274
0.58274.38274.96275275274.8274274.04275
0.6275275.4275275275275276.6275
0.62276.64277.44277277277.2277277.56277
0.64278.08279.36280280278.8278278.64280
0.66280280280280280280280280
0.68280.48281.16281281280.8280281.84281
0.7281.7282.4282282282282282.6282
0.72282.92283.64283283283.2283283.36284
0.74284.14284.88285285284.4284284.12285
0.76286.08288288288286.8285288288
0.78288288288288288288288288
0.8288288288288288288288288
0.82288.02288.84289289288.2288288.16289
0.84289289.08289289289289289.92289
0.86289.46290290290289.6289290290
0.88290290290290290290290290
0.9290290290290290290290290
0.92290.6295.4295295291290304.6295
0.94298.4306.12305305299295307.88305
0.96307.24309.52309309307.4309309.48310
0.98309.78319.12310310309.8310312.88322



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