Learn R Programming

hypervolume (version 1.1.1)

hypervolume_importance: Hypervolume variable importance

Description

Assesses the contribution of each variable to the total hypervolume as a rough metric of variable importance.

Usage

hypervolume_importance(hv)

Arguments

hv
A hypervolume for which the importance of each variable should be calculated.

Value

  • A named vector with importance scores for each axis. Note that these scores are not dimensionless but rather have linear units.

Details

The algorithm proceeds by comparing the n-dimensional input hypervolume's volume to all possible n-1 dimensional hypervolumes where each variable of interest has been deleted. The importance score reported is the ratio of the n-dimensional hypervolume relative to each of the n-1 dimensional hypervolumes. Larger values indicate that a variable makes a proportionally higher contribution to the overall volume.

This function is currently experimental. Other definitions of variable importance may also be possible. The algorithm currently cannot be used on set operations hypervolumes because the variable deletion process is not well defined for objects that are not associated with a particular set of observations.

Examples

Run this code
data(iris)
hv1 = hypervolume(subset(iris, Species=="setosa")[,1:4],reps=1000,bandwidth=0.2)
imp = hypervolume_importance(hv1)

print(imp)

Run the code above in your browser using DataLab