This function aggregates variable importance estimates over trees. It is a helper function used when print() is called on a variable importance estimate from a SEM forest.

aggregateVarimp(
  vimp,
  aggregate = c("mean", "median"),
  scale = c("absolute", "relative.baseline"),
  omit.na = TRUE,
  scale.by = 1
)

Arguments

vimp

Variable importance estimate from a SEM forest.

aggregate

Character. Either 'mean' or 'median' as function to aggregate estimates over a forest

scale

Character. Either 'absolute' or 'relative'.

omit.na

Boolean. By default TRUE, which ignores NA estimates when aggregating. Otherwise they are interpreted as zero.

scale.by

Integer. By default 1. Scaling parameter.