get.w: Extract estimated weights

Description Usage Arguments Value See Also

View source: R/treethresh.R

Description

Extracts from a tree object of the classes treethresh or wtthresh the estimated value of the weight w for each data point.

Usage

1
2
3
4
## S3 method for class 'treethresh'
get.w(object, C)
## S3 method for class 'wtthresh'
get.w(object, C)

Arguments

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).

Value

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.

See Also

treethresh, wtthresh, get.t, prune


treethresh documentation built on May 1, 2019, 11:16 p.m.