Hi all!

I am using the biomod2 package to model the distribution of a species. One of the methods I am using is GAM. I am following the ENM2020 tutorial videos to do so, but I recently came across an error I cannot understand:

"Error in smooth.construct.tp.smooth.spec(object, dk$data, dk$knots) :

A term has fewer unique covariate combinations than specified maximum degrees of freedom

Error in h(simpleError(msg, call)) :

error in evaluating the argument 'object' in selecting a method for function 'predict': object 'model.bm' not found"

Is there anybody that could give me a hand with this please?

These are my lines of code:

deer2010_opt

More Luís Santiago's questions See All
Similar questions and discussions