Closed fsdias closed 2 years ago
That was a bug - should be fixed now in latest version of the package. Let me know if you have any other issues.
I update gdm to version1.5.0-3, but running gdm.varImp still has this issue. I used one predictors: spp_tab <- read.csv("./sppTab.csv") env_tab<- cbind(spp_tab[,c(2,3,4)],pred_tab[,1])
gdmTab.dis <- formatsitepair(gdmdis, bioFormat=3, XColumn="New_long", YColumn="New_lat", predData=env_tab, siteColumn="site") per <- gdm.varImp(gdmTab.dis, geo=F,parallel = T,cores = 10,nPerm = 100)
The gdm.varImp function does not work with only one predictor.
Thanks,it works. But return another error message"Error in nulldev -vardevtab: has non-numeric parameters" I checked my dataframe all of them were numeric.
---Original--- From: "Fitzpatrick @.> Date: Thu, Jul 14, 2022 20:27 PM To: @.>; Cc: @.**@.>; Subject: Re: [fitzLab-AL/gdm] Error when running gdm.varImp() (Issue #23)
The gdm.varImp function does not work with only one predictor.
— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you commented.Message ID: @.***>
Running gdm.varImp() with the example works as expected
However, when I try to run it with only a few covariates, it returns an error:
Am I doing something wrong?