Computes relevance statistics for each input coordinate by calculating their particle-averaged mean reduction in variance each time that coordinate is used as a splitting variable in (an internal node of) the tree(s)
A vector of logicals of length
a scalar logical indicating if the count of the number of data points in the leaf should be used in place of its area; this can help with numerical accuracy in high dimensional input spaces
a positive scalar integer indicating how many particles should
be processed (iterations) before a progress statement should be
printed to the console; a (default) value of
Each binary split in the tree (in each particle) emits a reduction in variance (for regression models) or a reduction in entropy (for classification). This function calculates these reductions and attributes them to the variable(s) involved in the split(s). Those with the largest relevances are the most useful for prediction. A sensible variable selection rule based on these relevances is to discard those variables whose median relevance is not positive. See the Gramacy, Taddy, \& Wild (2011) reference below for more details.
The new set of particles is appended to the old set. However
after a subsequent
update.dynaTree call the total
number of particles reverts to the original amount.
Note that this does not work well with
which were built with
model="linear". Rather, a full
sensitivity analysis (
sens.dynaTree) is needed. Usually
it is best to first do
model="constant" and then use
relevance.dynaTree. Bayes factors (
can be used to back up any variable selections implied by the
relevance. Then, if desired, one can re-fit on the new (possibly
reduced) set of predictors with
There are no caveats with
object is returned with a new entry called
relevance containing a
columns. Each row contains the sample from the relevance of
each input, and there is a row for each particle
Gramacy, R.B., Taddy, M.A., and S. Wild (2011). “Variable Selection and Sensitivity Analysis via Dynamic Trees with an Application to Computer Code Performance Tuning” arXiv:1108.4739
1 2 3
## see the examples in sens.dynaTree for the relevances; ## Also see varpropuse and the class2d demo via ## demo("class2d")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.