| get.w {treethresh} | R Documentation |
Extracts from a tree object of the classes
treethresh or wtthresh the estimated value
of the weight w for each data point.
get.w(object, C) get.w.treethresh(object, C) get.w.wtthresh(object, C)
object |
An object of the class treethresh or
wtthresh from which the weights are to be extracted.
|
C |
If C is given then the tree is pruned with constant
C (see the help of prune for details on the
pruning). |
get.w returns an estimated value of the weight w for
each data point used to estimate object. If object is
of the class
treethresh, then get.w returns an array (or
matrix) of exactly the same dimension as the data that was used to
estimate object. If object is of the class
wtthresh then it returns a list with elements of the
same name and dimensions as the list that was used to estimate
object.
get.w.treethresh and get.w.wtthresh
should rarely be directly called by the user. The more user-friendly S3 function
get.w will take care of calling the right function.
treethresh, wtthresh, get.t, prune