Description
Usage
Arguments
Value
Note
See Also
View source: R/treethresh.R
Thresholds according to a tree object of the classes
treethresh
or wtthresh
.
| ## S3 method for class 'treethresh'
(object, , , postmed=)
## S3 method for class 'wtthresh'
(object, , , postmed=)
|
object |
An object of the class treethresh or
wtthresh according to which thresholding is to be
carried out.
|
data |
The data to be thresholded. If object is of the class
treethresh , then object has to be 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 it has to be a list with elements of the
same name and dimensions as the list that was used to estimate
object . If no data object is given and if object is not
estimated directly from the beta then the data used to
estimate object is used.
|
C |
If C is given then the tree is pruned with constant
C (see the help of prune for details on the
pruning).
|
postmed |
If postmed=TRUE then the thresholding is done by
returning the posterior median mu_i|X_i. If
postmed=FALSE then hard thresholding is performed.
|
thresh
returns the thresholded data
.
For an example of the use of thresh
, see
coefficients
.
treethresh
, wtthresh
, get.t
, prune
treethresh documentation built on May 1, 2019, 11:16 p.m.