Free Statistics

of Irreproducible Research!

Author's title

Author*Unverified author*
R Software Modulerwasp_percentiles.wasp
Title produced by softwarePercentiles
Date of computationTue, 27 Nov 2007 14:22:36 -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/27/t11961980071z4ep2cbn6xumk8.htm/, Retrieved Sun, 05 May 2024 17:05:55 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=6966, Retrieved Sun, 05 May 2024 17:05:55 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact167
Family? (F = Feedback message, R = changed R code, M = changed R Module, P = changed Parameters, D = changed Data)
-       [Percentiles] [qq] [2007-11-27 21:22:36] [fa77851485501f69e030fcd6dbd2de67] [Current]
Feedback Forum

Post a new message
Dataseries X:
15
3
2
-2
1
1
-1
-6
-13
-25
-26
-9
1
3
6
2
5
5
0
-5
-4
-2
-1
-8
-16
-19
-28
-11
-4
-9
-12
-10
-2
-13
0
0
4
7
5
2
-2
6
-3
1
0
-7
-6
-4
-4
-2
2
-5
-15
-16
-18
-13
-23
-10
-10
-6
-3
-4
-7
-7
-7
-3
0
-5
-3
3
2
-7
-1
0
-3
4
2
3
0
-10
-10




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=6966&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=6966&T=0

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=6966&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.02-26.76-26.72-26-26-25.4-26-27.28-26
0.04-24.52-24.44-23-23-22.2-25-23.56-25
0.06-19.56-19.32-19-19-18.2-19-22.68-19
0.08-17.04-16.88-16-16-16-18-17.12-16
0.1-15.9-15.8-15-15-15-16-15.2-16
0.12-13.56-13.32-13-13-13-13-14.68-13
0.14-13-13-13-13-12.8-13-13-13
0.16-12.04-11.88-12-12-11.2-12-11.12-12
0.18-10.42-10.24-10-10-10-10-10.76-10
0.2-10-10-10-10-10-10-10-10
0.22-10-10-10-10-10-10-10-10
0.24-9.56-9.32-9-9-9-10-9.68-9
0.26-8.94-8.68-8-8-8.2-9-8.32-9
0.28-7.32-7.04-7-7-7-7-7.96-7
0.3-7-7-7-7-7-7-7-7
0.32-7-7-7-7-7-7-7-7
0.34-6.46-6.12-6-6-6-6-6.88-6
0.36-6-6-6-6-6-6-6-6
0.38-5.22-5-5-5-5-5-5-5
0.4-5-5-5-5-5-5-5-5
0.42-4-4-4-4-4-4-4-4
0.44-4-4-4-4-4-4-4-4
0.46-4-4-4-4-4-4-4-4
0.48-3.12-3-3-3-3-3-3-3
0.5-3-3-3-3-3-3-3-3
0.52-3-3-3-3-3-3-3-3
0.54-2.26-2-2-2-2-2-2-2
0.56-2-2-2-2-2-2-2-2
0.58-2-2-2-2-2-2-2-2
0.6-1.4-1-1-1-1-1-1-1
0.62-1-1-1-1-1-1-1-1
0.64-0.160000000
0.6600000000
0.6800000000
0.700000000
0.720.321110.6011
0.7411111111
0.7611.3211111.681
0.7822222222
0.822222222
0.8222222222
0.842.042.88332.222.123
0.8633333333
0.8833.1633333.843
0.93.94444444
0.924.525554.6555
0.9455.0855555.925
0.965.766665.8666
0.986.389.88776.4612.127

\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 & -26.76 & -26.72 & -26 & -26 & -25.4 & -26 & -27.28 & -26 \tabularnewline
0.04 & -24.52 & -24.44 & -23 & -23 & -22.2 & -25 & -23.56 & -25 \tabularnewline
0.06 & -19.56 & -19.32 & -19 & -19 & -18.2 & -19 & -22.68 & -19 \tabularnewline
0.08 & -17.04 & -16.88 & -16 & -16 & -16 & -18 & -17.12 & -16 \tabularnewline
0.1 & -15.9 & -15.8 & -15 & -15 & -15 & -16 & -15.2 & -16 \tabularnewline
0.12 & -13.56 & -13.32 & -13 & -13 & -13 & -13 & -14.68 & -13 \tabularnewline
0.14 & -13 & -13 & -13 & -13 & -12.8 & -13 & -13 & -13 \tabularnewline
0.16 & -12.04 & -11.88 & -12 & -12 & -11.2 & -12 & -11.12 & -12 \tabularnewline
0.18 & -10.42 & -10.24 & -10 & -10 & -10 & -10 & -10.76 & -10 \tabularnewline
0.2 & -10 & -10 & -10 & -10 & -10 & -10 & -10 & -10 \tabularnewline
0.22 & -10 & -10 & -10 & -10 & -10 & -10 & -10 & -10 \tabularnewline
0.24 & -9.56 & -9.32 & -9 & -9 & -9 & -10 & -9.68 & -9 \tabularnewline
0.26 & -8.94 & -8.68 & -8 & -8 & -8.2 & -9 & -8.32 & -9 \tabularnewline
0.28 & -7.32 & -7.04 & -7 & -7 & -7 & -7 & -7.96 & -7 \tabularnewline
0.3 & -7 & -7 & -7 & -7 & -7 & -7 & -7 & -7 \tabularnewline
0.32 & -7 & -7 & -7 & -7 & -7 & -7 & -7 & -7 \tabularnewline
0.34 & -6.46 & -6.12 & -6 & -6 & -6 & -6 & -6.88 & -6 \tabularnewline
0.36 & -6 & -6 & -6 & -6 & -6 & -6 & -6 & -6 \tabularnewline
0.38 & -5.22 & -5 & -5 & -5 & -5 & -5 & -5 & -5 \tabularnewline
0.4 & -5 & -5 & -5 & -5 & -5 & -5 & -5 & -5 \tabularnewline
0.42 & -4 & -4 & -4 & -4 & -4 & -4 & -4 & -4 \tabularnewline
0.44 & -4 & -4 & -4 & -4 & -4 & -4 & -4 & -4 \tabularnewline
0.46 & -4 & -4 & -4 & -4 & -4 & -4 & -4 & -4 \tabularnewline
0.48 & -3.12 & -3 & -3 & -3 & -3 & -3 & -3 & -3 \tabularnewline
0.5 & -3 & -3 & -3 & -3 & -3 & -3 & -3 & -3 \tabularnewline
0.52 & -3 & -3 & -3 & -3 & -3 & -3 & -3 & -3 \tabularnewline
0.54 & -2.26 & -2 & -2 & -2 & -2 & -2 & -2 & -2 \tabularnewline
0.56 & -2 & -2 & -2 & -2 & -2 & -2 & -2 & -2 \tabularnewline
0.58 & -2 & -2 & -2 & -2 & -2 & -2 & -2 & -2 \tabularnewline
0.6 & -1.4 & -1 & -1 & -1 & -1 & -1 & -1 & -1 \tabularnewline
0.62 & -1 & -1 & -1 & -1 & -1 & -1 & -1 & -1 \tabularnewline
0.64 & -0.16 & 0 & 0 & 0 & 0 & 0 & 0 & 0 \tabularnewline
0.66 & 0 & 0 & 0 & 0 & 0 & 0 & 0 & 0 \tabularnewline
0.68 & 0 & 0 & 0 & 0 & 0 & 0 & 0 & 0 \tabularnewline
0.7 & 0 & 0 & 0 & 0 & 0 & 0 & 0 & 0 \tabularnewline
0.72 & 0.32 & 1 & 1 & 1 & 0.6 & 0 & 1 & 1 \tabularnewline
0.74 & 1 & 1 & 1 & 1 & 1 & 1 & 1 & 1 \tabularnewline
0.76 & 1 & 1.32 & 1 & 1 & 1 & 1 & 1.68 & 1 \tabularnewline
0.78 & 2 & 2 & 2 & 2 & 2 & 2 & 2 & 2 \tabularnewline
0.8 & 2 & 2 & 2 & 2 & 2 & 2 & 2 & 2 \tabularnewline
0.82 & 2 & 2 & 2 & 2 & 2 & 2 & 2 & 2 \tabularnewline
0.84 & 2.04 & 2.88 & 3 & 3 & 2.2 & 2 & 2.12 & 3 \tabularnewline
0.86 & 3 & 3 & 3 & 3 & 3 & 3 & 3 & 3 \tabularnewline
0.88 & 3 & 3.16 & 3 & 3 & 3 & 3 & 3.84 & 3 \tabularnewline
0.9 & 3.9 & 4 & 4 & 4 & 4 & 4 & 4 & 4 \tabularnewline
0.92 & 4.52 & 5 & 5 & 5 & 4.6 & 5 & 5 & 5 \tabularnewline
0.94 & 5 & 5.08 & 5 & 5 & 5 & 5 & 5.92 & 5 \tabularnewline
0.96 & 5.76 & 6 & 6 & 6 & 5.8 & 6 & 6 & 6 \tabularnewline
0.98 & 6.38 & 9.88 & 7 & 7 & 6.4 & 6 & 12.12 & 7 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=6966&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]-26.76[/C][C]-26.72[/C][C]-26[/C][C]-26[/C][C]-25.4[/C][C]-26[/C][C]-27.28[/C][C]-26[/C][/ROW]
[ROW][C]0.04[/C][C]-24.52[/C][C]-24.44[/C][C]-23[/C][C]-23[/C][C]-22.2[/C][C]-25[/C][C]-23.56[/C][C]-25[/C][/ROW]
[ROW][C]0.06[/C][C]-19.56[/C][C]-19.32[/C][C]-19[/C][C]-19[/C][C]-18.2[/C][C]-19[/C][C]-22.68[/C][C]-19[/C][/ROW]
[ROW][C]0.08[/C][C]-17.04[/C][C]-16.88[/C][C]-16[/C][C]-16[/C][C]-16[/C][C]-18[/C][C]-17.12[/C][C]-16[/C][/ROW]
[ROW][C]0.1[/C][C]-15.9[/C][C]-15.8[/C][C]-15[/C][C]-15[/C][C]-15[/C][C]-16[/C][C]-15.2[/C][C]-16[/C][/ROW]
[ROW][C]0.12[/C][C]-13.56[/C][C]-13.32[/C][C]-13[/C][C]-13[/C][C]-13[/C][C]-13[/C][C]-14.68[/C][C]-13[/C][/ROW]
[ROW][C]0.14[/C][C]-13[/C][C]-13[/C][C]-13[/C][C]-13[/C][C]-12.8[/C][C]-13[/C][C]-13[/C][C]-13[/C][/ROW]
[ROW][C]0.16[/C][C]-12.04[/C][C]-11.88[/C][C]-12[/C][C]-12[/C][C]-11.2[/C][C]-12[/C][C]-11.12[/C][C]-12[/C][/ROW]
[ROW][C]0.18[/C][C]-10.42[/C][C]-10.24[/C][C]-10[/C][C]-10[/C][C]-10[/C][C]-10[/C][C]-10.76[/C][C]-10[/C][/ROW]
[ROW][C]0.2[/C][C]-10[/C][C]-10[/C][C]-10[/C][C]-10[/C][C]-10[/C][C]-10[/C][C]-10[/C][C]-10[/C][/ROW]
[ROW][C]0.22[/C][C]-10[/C][C]-10[/C][C]-10[/C][C]-10[/C][C]-10[/C][C]-10[/C][C]-10[/C][C]-10[/C][/ROW]
[ROW][C]0.24[/C][C]-9.56[/C][C]-9.32[/C][C]-9[/C][C]-9[/C][C]-9[/C][C]-10[/C][C]-9.68[/C][C]-9[/C][/ROW]
[ROW][C]0.26[/C][C]-8.94[/C][C]-8.68[/C][C]-8[/C][C]-8[/C][C]-8.2[/C][C]-9[/C][C]-8.32[/C][C]-9[/C][/ROW]
[ROW][C]0.28[/C][C]-7.32[/C][C]-7.04[/C][C]-7[/C][C]-7[/C][C]-7[/C][C]-7[/C][C]-7.96[/C][C]-7[/C][/ROW]
[ROW][C]0.3[/C][C]-7[/C][C]-7[/C][C]-7[/C][C]-7[/C][C]-7[/C][C]-7[/C][C]-7[/C][C]-7[/C][/ROW]
[ROW][C]0.32[/C][C]-7[/C][C]-7[/C][C]-7[/C][C]-7[/C][C]-7[/C][C]-7[/C][C]-7[/C][C]-7[/C][/ROW]
[ROW][C]0.34[/C][C]-6.46[/C][C]-6.12[/C][C]-6[/C][C]-6[/C][C]-6[/C][C]-6[/C][C]-6.88[/C][C]-6[/C][/ROW]
[ROW][C]0.36[/C][C]-6[/C][C]-6[/C][C]-6[/C][C]-6[/C][C]-6[/C][C]-6[/C][C]-6[/C][C]-6[/C][/ROW]
[ROW][C]0.38[/C][C]-5.22[/C][C]-5[/C][C]-5[/C][C]-5[/C][C]-5[/C][C]-5[/C][C]-5[/C][C]-5[/C][/ROW]
[ROW][C]0.4[/C][C]-5[/C][C]-5[/C][C]-5[/C][C]-5[/C][C]-5[/C][C]-5[/C][C]-5[/C][C]-5[/C][/ROW]
[ROW][C]0.42[/C][C]-4[/C][C]-4[/C][C]-4[/C][C]-4[/C][C]-4[/C][C]-4[/C][C]-4[/C][C]-4[/C][/ROW]
[ROW][C]0.44[/C][C]-4[/C][C]-4[/C][C]-4[/C][C]-4[/C][C]-4[/C][C]-4[/C][C]-4[/C][C]-4[/C][/ROW]
[ROW][C]0.46[/C][C]-4[/C][C]-4[/C][C]-4[/C][C]-4[/C][C]-4[/C][C]-4[/C][C]-4[/C][C]-4[/C][/ROW]
[ROW][C]0.48[/C][C]-3.12[/C][C]-3[/C][C]-3[/C][C]-3[/C][C]-3[/C][C]-3[/C][C]-3[/C][C]-3[/C][/ROW]
[ROW][C]0.5[/C][C]-3[/C][C]-3[/C][C]-3[/C][C]-3[/C][C]-3[/C][C]-3[/C][C]-3[/C][C]-3[/C][/ROW]
[ROW][C]0.52[/C][C]-3[/C][C]-3[/C][C]-3[/C][C]-3[/C][C]-3[/C][C]-3[/C][C]-3[/C][C]-3[/C][/ROW]
[ROW][C]0.54[/C][C]-2.26[/C][C]-2[/C][C]-2[/C][C]-2[/C][C]-2[/C][C]-2[/C][C]-2[/C][C]-2[/C][/ROW]
[ROW][C]0.56[/C][C]-2[/C][C]-2[/C][C]-2[/C][C]-2[/C][C]-2[/C][C]-2[/C][C]-2[/C][C]-2[/C][/ROW]
[ROW][C]0.58[/C][C]-2[/C][C]-2[/C][C]-2[/C][C]-2[/C][C]-2[/C][C]-2[/C][C]-2[/C][C]-2[/C][/ROW]
[ROW][C]0.6[/C][C]-1.4[/C][C]-1[/C][C]-1[/C][C]-1[/C][C]-1[/C][C]-1[/C][C]-1[/C][C]-1[/C][/ROW]
[ROW][C]0.62[/C][C]-1[/C][C]-1[/C][C]-1[/C][C]-1[/C][C]-1[/C][C]-1[/C][C]-1[/C][C]-1[/C][/ROW]
[ROW][C]0.64[/C][C]-0.16[/C][C]0[/C][C]0[/C][C]0[/C][C]0[/C][C]0[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]0.66[/C][C]0[/C][C]0[/C][C]0[/C][C]0[/C][C]0[/C][C]0[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]0.68[/C][C]0[/C][C]0[/C][C]0[/C][C]0[/C][C]0[/C][C]0[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]0.7[/C][C]0[/C][C]0[/C][C]0[/C][C]0[/C][C]0[/C][C]0[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]0.72[/C][C]0.32[/C][C]1[/C][C]1[/C][C]1[/C][C]0.6[/C][C]0[/C][C]1[/C][C]1[/C][/ROW]
[ROW][C]0.74[/C][C]1[/C][C]1[/C][C]1[/C][C]1[/C][C]1[/C][C]1[/C][C]1[/C][C]1[/C][/ROW]
[ROW][C]0.76[/C][C]1[/C][C]1.32[/C][C]1[/C][C]1[/C][C]1[/C][C]1[/C][C]1.68[/C][C]1[/C][/ROW]
[ROW][C]0.78[/C][C]2[/C][C]2[/C][C]2[/C][C]2[/C][C]2[/C][C]2[/C][C]2[/C][C]2[/C][/ROW]
[ROW][C]0.8[/C][C]2[/C][C]2[/C][C]2[/C][C]2[/C][C]2[/C][C]2[/C][C]2[/C][C]2[/C][/ROW]
[ROW][C]0.82[/C][C]2[/C][C]2[/C][C]2[/C][C]2[/C][C]2[/C][C]2[/C][C]2[/C][C]2[/C][/ROW]
[ROW][C]0.84[/C][C]2.04[/C][C]2.88[/C][C]3[/C][C]3[/C][C]2.2[/C][C]2[/C][C]2.12[/C][C]3[/C][/ROW]
[ROW][C]0.86[/C][C]3[/C][C]3[/C][C]3[/C][C]3[/C][C]3[/C][C]3[/C][C]3[/C][C]3[/C][/ROW]
[ROW][C]0.88[/C][C]3[/C][C]3.16[/C][C]3[/C][C]3[/C][C]3[/C][C]3[/C][C]3.84[/C][C]3[/C][/ROW]
[ROW][C]0.9[/C][C]3.9[/C][C]4[/C][C]4[/C][C]4[/C][C]4[/C][C]4[/C][C]4[/C][C]4[/C][/ROW]
[ROW][C]0.92[/C][C]4.52[/C][C]5[/C][C]5[/C][C]5[/C][C]4.6[/C][C]5[/C][C]5[/C][C]5[/C][/ROW]
[ROW][C]0.94[/C][C]5[/C][C]5.08[/C][C]5[/C][C]5[/C][C]5[/C][C]5[/C][C]5.92[/C][C]5[/C][/ROW]
[ROW][C]0.96[/C][C]5.76[/C][C]6[/C][C]6[/C][C]6[/C][C]5.8[/C][C]6[/C][C]6[/C][C]6[/C][/ROW]
[ROW][C]0.98[/C][C]6.38[/C][C]9.88[/C][C]7[/C][C]7[/C][C]6.4[/C][C]6[/C][C]12.12[/C][C]7[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=6966&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=6966&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.02-26.76-26.72-26-26-25.4-26-27.28-26
0.04-24.52-24.44-23-23-22.2-25-23.56-25
0.06-19.56-19.32-19-19-18.2-19-22.68-19
0.08-17.04-16.88-16-16-16-18-17.12-16
0.1-15.9-15.8-15-15-15-16-15.2-16
0.12-13.56-13.32-13-13-13-13-14.68-13
0.14-13-13-13-13-12.8-13-13-13
0.16-12.04-11.88-12-12-11.2-12-11.12-12
0.18-10.42-10.24-10-10-10-10-10.76-10
0.2-10-10-10-10-10-10-10-10
0.22-10-10-10-10-10-10-10-10
0.24-9.56-9.32-9-9-9-10-9.68-9
0.26-8.94-8.68-8-8-8.2-9-8.32-9
0.28-7.32-7.04-7-7-7-7-7.96-7
0.3-7-7-7-7-7-7-7-7
0.32-7-7-7-7-7-7-7-7
0.34-6.46-6.12-6-6-6-6-6.88-6
0.36-6-6-6-6-6-6-6-6
0.38-5.22-5-5-5-5-5-5-5
0.4-5-5-5-5-5-5-5-5
0.42-4-4-4-4-4-4-4-4
0.44-4-4-4-4-4-4-4-4
0.46-4-4-4-4-4-4-4-4
0.48-3.12-3-3-3-3-3-3-3
0.5-3-3-3-3-3-3-3-3
0.52-3-3-3-3-3-3-3-3
0.54-2.26-2-2-2-2-2-2-2
0.56-2-2-2-2-2-2-2-2
0.58-2-2-2-2-2-2-2-2
0.6-1.4-1-1-1-1-1-1-1
0.62-1-1-1-1-1-1-1-1
0.64-0.160000000
0.6600000000
0.6800000000
0.700000000
0.720.321110.6011
0.7411111111
0.7611.3211111.681
0.7822222222
0.822222222
0.8222222222
0.842.042.88332.222.123
0.8633333333
0.8833.1633333.843
0.93.94444444
0.924.525554.6555
0.9455.0855555.925
0.965.766665.8666
0.986.389.88776.4612.127



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