varImportance: variable importance

Description Usage Arguments Details Author(s) References Examples

Description

Calculates relative importance of different variables in the models using several approaches.

Usage

1
getVarImp(x,id,wtest,...)

Arguments

x

a numeric vector including the observed values; or a sdmEvaluate object

id

a numeric vector including the predicted values

wtest

specifies which dataset ('training','test.dep','test.indep') should be used (if exist) to calculate the importance of variables

...

additional arguments (not implemented yet.)

Details

getVarImp function returns an object including different measures of variable importance, and if be put in plot function, a barplot is generated:

Author(s)

Babak Naimi naimi.b@gmail.com

http://r-gis.net

http://biogeoinformatics.org

References

Naimi, B., Araujo, M.B. (2016) sdm: a reproducible and extensible R platform for species distribution modelling, Ecography, DOI: 10.1111/ecog.01881

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
## Not run: 
# if m is a sdmModels object (output of sdm function) then:

getVarImp(m,id=1,wtest='training') # variable importance based on training dataset

vi <- getVarImp(m,id=1,wtest='test.dep') 

plot(vi,'auc')

plot(vi,'cor')


## End(Not run)

sdm documentation built on May 2, 2019, 6:32 p.m.

Related to varImportance in sdm...