[Biomod-commits] Variable importance from a single model
Damien Georges
damien.georges2 at gmail.com
Wed Apr 24 18:41:53 CEST 2013
Dear Joaquin,
Variables Importance are stored into a 4D array with :
- dim1 : the variables (e.g. var1, var2, ...)
- dim2: the models (e.g. GLM, MAXENT, ...)
- dim3: the CV repetition (e.g RUN1, RUN2, ...)
- dim4: the data subset used (e.g AllData or PA1, PA2,...)
So if you want to access variables importance for "Test_AllData_RUN2_FDA" :
myVI <- getModelsVarImport(myBiomodModelOut)
myVI[,"FDA","RUN2","AllData"]
You can quite easily automatise it using strsplit(..., split="_") function.
Hope that helps,
Best,
Damien.
On 24/04/2013 18:24, Joaquin DL wrote:
> Dear all,
>
> I am using the function get ModelsVarImport with the object
> mybiomodModelOut.
> getModelsVarImport(myBiomodModelOut)
>
> This gives a list with the variables importance for each model and run, but
> how can I get the variable importance for a single model for instance "
>
> "Test_AllData_RUN2_FDA"
>
> Thank you,
>
> Joaquín
> _______________________________________________
> Biomod-commits mailing list
> Biomod-commits at lists.r-forge.r-project.org
> https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/biomod-commits
More information about the Biomod-commits
mailing list