[R-sig-eco] Error when performing replicates in maxent (dismo)
Bede-Fazekas Ákos
b|@|ev||@t @end|ng |rom gm@||@com
Wed Oct 7 12:52:43 CEST 2020
Hello Irene,
instead of
args("replicates=100")
write
args = "replicates=100"
So it should work:
me <- maxent(predictors, occtrain, factors=c("bion", "morfo_roc",
"morfo_bloc", "morfo_sedgruesos", "morfo_sedmuyfin", "morfo_veg",
"morfo_sedfinos"), args = "replicates=100")
HTH,
Ákos Bede-Fazekas
Hungarian Academy of Sciences
2020.10.07. 12:13 keltezéssel, Irene Rojo írta:
> Dear all,
>
> I am fitting maxent models within the dismo package. I am trying to perform
> several replicates on the model, in which 80% of presences will be retained
> as training data and the other 20% as testing data, in order to get a mean
> value of AUC across all models.
>
> The code I am using is the following:
>
> me <- maxent(predictors, occtrain, factors=c("bion", "morfo_roc",
> "morfo_bloc", "morfo_sedgruesos", "morfo_sedmuyfin", "morfo_veg",
> "morfo_sedfinos"), args("replicates=100"))
>
> However I get the error:
> Error in args("replicates=100") :
> no se pudo encontrar la función "replicates=100", which means that the
> function "replicates=10" was not possible to be found.
>
> So I don't know how I could automate the process so I don't have to perform
> all the replicates by hand. Reading on the literature I thought it was the
> (args=replicates) way, but it does not seem to be.
>
> Any advice will be much appreciated.
>
> Thanks a lot,
>
> Irene
>
> [[alternative HTML version deleted]]
>
> _______________________________________________
> R-sig-ecology mailing list
> R-sig-ecology using r-project.org
> https://stat.ethz.ch/mailman/listinfo/r-sig-ecology
More information about the R-sig-ecology
mailing list