mlammens / spThin

2 stars 7 forks source link

Using ENMeval to tune Maxent settings and getting exactly the same results for two disjunct species #28

Closed RuthPalsson closed 1 year ago

RuthPalsson commented 1 year ago

I am working with data for two species (cine with 14 locations and atrip with 45 locations) separated by c. 350 km and in quite different climates. I used all 19 BioClim layers. My code:

enmeval_results <- ENMevaluate(atrip, env, bg = NULL, 
        tune.args = list(fc = c("L","LQ","H", "LQH", "LQHP", "LQHPT"), rm = 1:5), partitions = "jackknife",
        algorithm = "maxnet")

enmeval_results@results

write.csv(enmeval_results@results, "enmeval_results.csv")

The enmeval_results.csv is exactly the same for both species!! The first time it happened I assumed that I had accidentally used the same species list. But I have redone it very carefully now and I am still getting exactly the same result. I am clearing the lists from R between each run. Any ideas please?

RuthPalsson commented 1 year ago

I have solved this problem myself! I didn't have enmeval completely installed. I knew bits were missing, but because it still "worked", I assumed it was working properly when it wasn't!!! It is now installed correctly.