Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SSDM Package, Threshold Error Using "stack_modelling" function #128

Open
Eric56-SDM opened this issue Aug 25, 2023 · 2 comments
Open

SSDM Package, Threshold Error Using "stack_modelling" function #128

Eric56-SDM opened this issue Aug 25, 2023 · 2 comments

Comments

@Eric56-SDM
Copy link

Hello, my name is Eric and I am doing a research project creating Species Distribution Models using single modelling algorithms, ensemble modelling, and then my final goal is to create a "Community Distribution Model" incorporating multiple species which seems possible using a "predict then assemble" or stacking strategy via the SSDM package and stack_modelling function. I have two questions.

Based on the description of the stack_modelling function is the only way to incorporate multiple species occurrence data points via the "occurrence" argument of this function? Thus far I have been dabbling with incorporating multiple species in a .csv file arranged with columns of species name, Longitude, Latitude. This appears to be the only method of incorporating multiple species data into a combined csv file, but please let me know if any other methods are possible.

Second question: as I am attempting to develop a "Community Level Model" using multiple species I have been using the stack_modelling function, and have recieved the following error when attempting to run the code: "Error in stack_modelling(c("all"), datafile, variable.stack, rep = 1 : Less than two species models were retained, you should lower the ensemble threshold value (ensemble.thresh parameter)." Based on the discussion above, I have tried lowering the threshold value, and still receive the same error. My variable "datafile" contains my presence data and "variable.stack" includes my predictor variables. Please advise.

@Eric56-SDM
Copy link
Author

Image of Error :

Image 1

@sylvainschmitt
Copy link
Owner

Have you tried with a single species first? Have you verified also the spatial match between occurrences and your stack?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants