[Biomod-commits] Error GAM

Antonio Canepa ajcanepa at gmail.com
Tue Jul 9 12:01:18 CEST 2013


Hi Joaquin,
It seems that you need to specify 'manually' the amount of degrees of
freedom s(x1, k=3), if you would like to use a quadratic response (k=3),
for instance.
Cheers,

Antonio



On 9 July 2013 11:26, Joaquin DL <jduquelazo at gmail.com> wrote:

> Dear all,
>
> I am running Biomod2 (version 2.1.15) with diferent species and prevalence.
> I always got this error for GAM.
>
> 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 predict(model.bm, Data[, expl_var_names, drop = FALSE], on_0_1000
> = TRUE) :
>   error in evaluating the argument 'object' in selecting a method for
> function 'predict': Error: object 'model.bm' not found
>
> How can I solve it?
>
> Thanks
>
> Joaquin
> _______________________________________________
> Biomod-commits mailing list
> Biomod-commits at lists.r-forge.r-project.org
> https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/biomod-commits
>



-- 
Antonio Canepa Oneto
PhD student
Dept. Biologia Marina i Oceanografia
Institut de Ciencies Del Mar CMIMA, CSIC
Ps. Marítim de la Barceloneta,37-49, c.p. 08003
BARCELONA, Catalunya,Spain
Phone: +34 932 30 9500  (ext. 6067)
Mobile: +34 628 320 778
e-mail: canepa at icm.csic.es
           ajcanepa at gmail.com


More information about the Biomod-commits mailing list