[Biomod-commits] GAM error with binary variable
Wilfried Thuiller
wilfried.thuiller at ujf-grenoble.fr
Mon Nov 19 13:49:30 CET 2012
Dear Maria,
What do you mean by binary variable? First do you refer to the response or to the explanatory variable?
What is the status of the variable? factor or continuous?
If your variable is an explanatory one and you want it be evaluated as binary, you need to transform it as factor.
Data$MyBinaryVariable = as.factor(Data$MyBinaryVariable)
Best
Wilfried
Le 19 nov. 2012 à 13:05, Maria Guerrina a écrit :
> Dear all,
> when we use binary variables, we have this error.
> Why?
>
> Thank you
>
>
> -=-=-=--=-=-=- Pallionii_PA1_RUN1
>
> Model=GAM
> GAM_mgcv algorithm chosen
> User defined control args building..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
>
> ! Note : Pallionii_PA1_RUN1_GAM failed!
>
>
>
> Maria Guerrina
> PhD Student
> Università di Genova
> DISTAV
> Corso Dogali 1M
> I - 16136 GENOVA (Italy)
> _______________________________________________
> 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
FP6 European EcoChange project: http://www.ecochange-project.eu
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.r-forge.r-project.org/pipermail/biomod-commits/attachments/20121119/f459bf51/attachment.html>
More information about the Biomod-commits
mailing list