importance.combinedGradientForest: Importance of predictors or species for a...

Description Usage Arguments Value Author(s) See Also Examples

Description

Provide access to the importance values of predictors or species

Usage

1
2
## S3 method for class 'combinedGradientForest'
importance(x, type = c("Weighted", "Raw", "Species")[1], sort = TRUE, ...)

Arguments

x

an object of class combinedGradientForest generated by combinedGradientForest.

type

type of importance measure. The choices are

  • Weighted: measure is an average of accuracy importance weighted by species R^2

  • Raw: measure is a simple average of accuracy importance over species

  • Species: measure is the species R^2

sort

if TRUE, sort by decreasing importance.

...

further arguments passed to or from other methods.

Value

a named vector of importance measures.

Author(s)

N. Ellis, CSIRO, Cleveland, Australia. <[email protected]>. S.J. Smith, DFO, Dartmouth, NS, Canada. <[email protected]>

See Also

importance.gradientForest

Examples

1
2
3
4
5
6
7
8
data(CoMLsimulation)
preds <- colnames(Xsimulation)
specs <- colnames(Ysimulation)
f1 <- gradientForest(data.frame(Ysimulation,Xsimulation), preds, specs[1:6], ntree=10)
f2 <- gradientForest(data.frame(Ysimulation,Xsimulation), preds, specs[1:6+6], ntree=10)
f12 <- combinedGradientForest(west=f1,east=f2)
importance(f12)
importance(f12, type = "Species", sort = FALSE)

slarge/gradientForest documentation built on May 3, 2019, 4:05 p.m.