 Usage:  enn = pred (tr, x, type)  

 

 Input:



  tr                     list of vectors: data structure which represents a binary tree 

                         and is produced by cartsplit procedure, contains vectors 

                         tr.val, tr.vec, tr.mean, tr.ssr, tr.nelem. 

                         See cartsplit for the description of tr. 

                         

  x                      p x 1 vector: represents a point in the sample space 

                         at which the prediction of the regression tree will 

                         be given. 

                         

  type                   p x 1 vector: 

                         contains the types of the original regression variables, 

                         1 means that the corresponding variable is continuous and 

                         0 that it is categorical. This vector should be similar to 

                         the vector which was given originally as an input to the 

                         cartsplit which produced the regression tree tr. 

                         

 Output:



  enn                    real number: prediction of the regression tree at x, 

                         that is, the value of the regression function at x. 

                         

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

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

