|
QUARTILE COEFFICIENT OF DISPERSIONName:
where Q1 is the lower quartile (25-th percentile) and Q3 is the upper quartile (75-th percentile). This statistic has been suggested as a robust alternative to the coefficient of variation.
<SUBSET/EXCEPT/FOR qualification> where <y> is a response variable; <par> is a parameter where the quartile coefficient of dispersion value is saved; and where the <SUBSET/EXCEPT/FOR qualification> is optional.
<SUBSET/EXCEPT/FOR qualification> where <y1> is the first response variable; <y2> is the second response variable; <par> is a parameter where the difference of the quartile coefficient of dispersion values is saved; and where the <SUBSET/EXCEPT/FOR qualification> is optional.
LET QCD = QUARTILE COEFFICIENT OF DISPERSION Y1 SUBSET TAG > 2
LET DIFFQCD = DIFFERENCE OF QUARTILE COEFFICIENT OF DISPERSION Y1 Y2
2017/06: Added DIFFERENCE OF QUARTILE COEFFICIENT OF DISPERSION
SKIP 25
READ ZARR13.DAT Y
LET QCD = QUARTILE COEFFICIENT OF DISPERSION Y
Program 2:
. Step 1: Create the data
.
skip 25
read gear.dat y x
skip 0
set write decimals 6
.
. Step 2: Define plot control
.
title case asis
title offset 2
label case asis
.
y1label Quartile Coefficient of Dispersion
x1label Group
title Quartile Coefficient of Dispersion for GEAR.DAT
let ngroup = unique x
xlimits 1 ngroup
major x1tic mark number ngroup
minor x1tic mark number 0
tic mark offset units data
x1tic mark offset 0.5 0.5
.
character X
line blank
.
set statistic plot reference line average
quartile coefficient of dispersion plot y x
.
set write decimals 5
tabulate quartile coefficient of dispersion y x
SKIP 25 READ IRIS.DAT Y1 TO Y4 X . LET A = DIFFERENCE OF QUARTILE COEFFICIENT OF DISPERSION Y1 Y2 SET WRITE DECIMALS 4 TABULATE DIFFERENCE OF QUARTILE COEFFICIENT OF DISPERSION Y1 Y2 X
|
Privacy
Policy/Security Notice
NIST is an agency of the U.S.
Commerce Department.
Date created: 01/24/2017 | ||||||||||||||||||||||