[Biomod-commits] Error GAM
Wilfried Thuiller
wilfried.thuiller at ujf-grenoble.fr
Tue Jul 9 17:18:03 CEST 2013
Hi Joaquim,
Do you have a categorical data non-specified as factor? These usuals bugs come when you have a variable with one or more different values but not many (typically a factor). GAM tries to make a smoothing function out of that and then crashed.
Cheers
Wilfried
Le 9 juil. 2013 à 12:01, Antonio Canepa <ajcanepa at gmail.com> a écrit :
> 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
> _______________________________________________
> 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
-----------------------------
Dr. Wilfried Thuiller
Laboratoire d'Ecologie Alpine, UMR CNRS 5553
Université Joseph Fourier
BP53, 38041 Grenoble cedex 9, France
tel: +33 (0)4 76 51 44 97
fax: +33 (0)4 76 51 42 79
Email: wilfried.thuiller at ujf-grenoble.fr
Personal website: http://www.will.chez-alice.fr
Team website: http://www-leca.ujf-grenoble.fr/equipes/emabio.htm
ERC Starting Grant TEEMBIO project: http://www.will.chez-alice.fr/Research.html
More information about the Biomod-commits
mailing list