 Usage:  {xc,xcvars}=categorize(x {,reftype,refvalue} {,xvars})  

 

 Input:



  x                      n x p matrix, the columns correspond to the 

                         variables. 

                         

  reftype                optional, either "value" when reference 

                         values shall be given or "index" when indices of 

                         reference values shall be given. 

                         

  refvalue               optional, p x 1 vector, reference values or indices 

                         of reference values. If it is impossible to use 

                         one of these values, the corresponding 

                         variable is not categorized. 

                         

  xvars                  optional, p x 1 string vector, variable names. 

                         

 Output:



  xc                     n x pc matrix, the categorized data. 

                         

  xcvars                 pc x 1 string vector, variable names of 

                         categorized data, where the numbers of categories 

                         are preceeded by "#". 

                         If xvars was not given, the variable names for x 

                         are set as "Variable 1", "Variable 2" etc. 

                         

--------------------------------------------------------------

(C) MD*TECH Method and Data Technologies, 21.9.2000

