Learn R Programming

treethresh (version 0.1-11)

get.t: Extract estimated hard threshold

Description

Extracts from a tree object of the classes treethresh or wtthresh the estimated value of the hard threshold \(t\) for each data point.

Usage

# S3 method for treethresh
get.t(object, C)
# S3 method for wtthresh
get.t(object, C)

Arguments

object

An object of the class treethresh or wtthresh from which the thresholds are to be computed.

C

If C is given, then the tree is pruned with constant \(C\) (see the help of prune for details on the pruning process).

Value

get.t returns an estimated value of the hard threshold \(t\) for each data point used to estimate object. If object is of the class treethresh, then get.t 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.w, prune