Forum: help
Monitor Forum | Start New ThreadRE: BIOMOD2: models.pa [ Reply ] By: Maya Guéguen on 2023-11-14 09:12 | [forum:49806] |
Hello Nadia, Support is no longer provided on this forum. We try to have all issues posted onto our github page to facilitate both our support work and the possibility for other users to relate to similar questions. Please repost here, and we'll be happy to help you ! https://github.com/biomodhub/biomod2/issues Maya |
BIOMOD2: models.pa [ Reply ] By: Nadia Vicenzi on 2023-11-13 20:15 | [forum:49805] |
Hi, I am trying to use the models.pa parameter in the BIOMOD_Modeling function, but I do not know how write the list, and indicate which list is for each model. Error in .fun_testIfInherits(TRUE, "models.pa", models.pa, "list") : models.pa must be a 'list' object I want to use for three algoritms (GLM; RF and Maxent),different PA sets. For example, with GLM and Maxent ten sets of 10000 PA, and with RF 10 sets of 150. Accordingly to the documentation "models.pa (optional, default NULL) A list containing for each model a vector defining which pseudo-absence datasets are to be used, must be among colnames (bm.format@PA.table). I wrote this in the formating data: Cmac_dataPA <- BIOMOD_FormatingData( resp.var = Cmac_occ["C_maculatus"], resp.xy = Cmac_occ[, c("Longitude", "Latitude")], expl.var = bioc2, resp.name = "C_maculatus", PA.nb.rep = 20, PA.nb.absences = c(10000,10000, 10000,10000,10000, 10000,10000,10000, 10000,10000,150, 150, 150, 150, 150, 150, 150, 150, 150, 150), PA.strategy = 'random', filter.raster=TRUE ) How can wrote te models.pa argument? |