getVarImp {sdm} | R Documentation |
Calculates relative importance of different variables in the models using several approaches.
getVarImp(x,id,wtest,...)
x |
a numeric vector including the observed values; or a |
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.) |
getVarImp
function returns an object including different measures of variable importance, and if be put in plot function, a barplot is generated:
Babak Naimi naimi.b@gmail.com
Naimi, B., Araujo, M.B. (2016) sdm: a reproducible and extensible R platform for species distribution modelling, Ecography, DOI: 10.1111/ecog.01881
## 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)