next up previous contents
Next: Sorting a data Up: Data reorganization Previous: Picking data records based

Binarizing a classification to a data

 

tabular861

This command encodes a given classified data related to a source data. For each class a new binary variable is created. Then the index of each data record is matched to the indexes in the class. If an index is found the value of the corresponding binary variable will be 1, otherwise it is left to 0. A target data can be the same as the source data when new fields are created to the existing data, otherwise a new data frame is created.

Example (ex3.3): The example shows the main commands and phases needed to create a binary coding for grouping a data.

...
NDA> somtr -d boston -sout som1 -l 4
NDA> somcl -d boston -s som1 -cout cld1
...
NDA> mkgrp grp1 -s som1
...
# interactive selection for groups
...
NDA> mergecld -c1 groups -c2 cld1 -cout classif
...
NDA> bin -d boston -c classif -dout data
....

figure869



Erkki Hakkinen
Thu Sep 24 11:51:34 EET DST 1998