[Biomod-commits] Error in Models
wilfried.thuiller at ujf-grenoble.fr
Tue Sep 14 20:01:42 CEST 2010
In the help file you will see that we have changed the call for the SRE models.
I am sorry if we have let the old version in the manual or elsewhere. We are updating the manual at the moment.
That should work:
I replaced the Perc025 and Perc05 by quant=0.05. This is more flexible as you can select the percentile you want.
MDA is not longer in BIOMOD and has been replaced by FDA
Models(GLM=T, TypeGLM="poly", Test="AIC", GBM=T, No.trees=2000, GAM=T, Spline=3, CTA=T, CV.tree=50, ANN=T, CV.ann=2, SRE=T,quant=0.05, FDA=T, MARS=T, RF=T, NbRunEval=3, DataSplit=70, Yweights=NULL, Roc=T, Optimized.Threshold.Roc=T, Kappa=T, TSS=T, KeepPredIndependent=T, VarImport=5, NbRepPA=2, strategy="circles", coor=Coors, distance=2, nb.absences=1000)
Just a tip: when you have "unused arguments" in an error message, it generally means you have specified some arguments which does not exist in the function (in your case it was Perc025, Perc05 and MDA). Check the function and the help file and try to see where are these arguments you would like to add which do not exist. This is true for all functions in R.
Hope it helps,
Le 14 sept. 2010 à 19:08, Ashley Brooks a écrit :
> I am using the updated versions of both r and biomod. I am trying to run the models for my data. I typed in:
> Models(GLM=T, TypeGLM="poly", Test="AIC", GBM=T, No.trees=2000, GAM=T, Spline=3, CTA=T, CV.tree=50, ANN=T, CV.ann=2, SRE=T, Perc025=F, Perc05=T, MDA=T, MARS=T, RF=T, NbRunEval=3, DataSplit=70, Yweights=NULL, Roc=T, Optimized.Threshold.Roc=T, Kappa=T, TSS=T, KeepPredIndependent=T, VarImport=5, NbRepPA=2, strategy="circles", coor=Coors, distance=2, nb.absences=1000)
> And then recieved the following Error:
> Error in Models(GLM = T, TypeGLM = "poly", Test = "AIC", GBM = T, No.trees = 2000, :
> unused argument(s) (Perc025 = F, Perc05 = T, MDA = T)
> I am not sure what is wrong. Any help would be much appreciated.
> Biomod-commits mailing list
> Biomod-commits at lists.r-forge.r-project.org
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
Home page: http://www.will.chez-alice.fr
FP6 European MACIS project: http://www.macis-project.net
FP6 European EcoChange project: http://www.ecochange-project.eu
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Biomod-commits