next up previous contents
Next: Histograms for fields Up: Field statistics Previous: Basic statistics for fields

Quartiles for data fields

 

fldquar Compute quatiles for data fields
-d <data> source data
-fout <field> resulted field
[-v <value>] percentual amount of data
[-md <value>] missing value to be skipped

This operation finds a value of the sorted data that limits a given portion of data. The value is not given, then the default value (50 %) is used.

Example: This simple example shows, how the first and the third quartiles can be computed.

NDA> load boston.dat
NDA> mkgrp grp
NDA> addsg grp
NDA> select crim -f boston.crim
NDA> fldquar -d crim -fout crim25 -v 25
NDA> fldquar -d crim -fout crim75 -v 75
NDA> rngplt grp -n crim -inx 0 -f crim25 -f crim75
     -sca data -min boston.crim -max boston.crim -co blue -labs
...
... zn    ...
... indus ...
...

figure1703



Anssi Lensu
Thu May 17 15:00:44 EET DST 2001