
You can use the PCTLDEF=
option to specify one of five definitions for computing quantile statistics (percentiles). Let n equal the number of nonmissing values for a variable, and let
represent the ordered values of the process variable. For the tth percentile, set
, and express
as
![\[ np = j + g \]](images/qcug_shewhart0088.png)
where j is the integer part of
, and g is the fractional part of
.
The tth percentile (call it y) can be defined in five ways, as described in the next five sections.
This uses the weighted average at
![\[ y = (1- g)x_{j} + gx_{j+1} \]](images/qcug_shewhart0090.png)
where
is taken to be
.
This uses the observation numbered closest to
![\[ y=x_{i} \]](images/qcug_shewhart0093.png)
where i is the integer part of
.
This uses the empirical distribution function
![\[ \begin{array}{ll} y=x_{j} & \mbox{if } \, g=0 \\ y=x_{j+1} & \mbox{if } \, g > 0 \\ \end{array} \]](images/qcug_shewhart0095.png)
This uses the weighted average aimed at
![\[ y=(1-g)x_{j} + gx_{j+1} \]](images/qcug_shewhart0097.png)
where
, and where
is taken to be
.
This uses the empirical distribution function with averaging
![\[ \begin{array}{ll} y=(x_{j} + x_{j+1})/2 & \mbox{if } \, g = 0 \\ y=x_{j+1} & \mbox{if } \, g > 0 \\ \end{array} \]](images/qcug_shewhart0101.png)