<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
I have exactly the same problem, both with my own data and with the
tutorial data. I have not found a solution or any previous mention
of this problem. I have used BIOMOD successfully before on the same
computer. I have BIOMOD version 1.1-7.02/r300 and R version 2.15.0
(all up to date).<br>
<br>
Input code:<br>
<br>
<hr size="2" width="100%"><font color="#ff0000"><tt>library(BIOMOD)</tt><br>
<tt>data(Sp.Env)<br>
LatLong <- Sp.Env[,2:3]<br>
Expl.Var <- Sp.Env[,4:10]<br>
Resp.Var <- Sp.Env[,11:17]<br>
Initial.State(Response = Resp.Var[,1:2], Explanatory = Expl.Var)<br>
Models(GLM = FALSE, TypeGLM = "quad", Test = "AIC", GBM = FALSE,
No.trees = 3000, GAM = FALSE, CTA = TRUE, CV.tree = 50,<br>
ANN = FALSE, CV.ann = 2, SRE = FALSE, quant=0.05, FDA = TRUE,
MARS = FALSE, RF = FALSE, NbRunEval = 2, DataSplit = 80,<br>
Yweights=NULL, Roc=TRUE, Optimized.Threshold.Roc=TRUE,
Kappa=TRUE, TSS=TRUE, KeepPredIndependent = FALSE, VarImport=5,<br>
NbRepPA=2, strategy="circles", coor=LatLong, distance=2,
nb.absences=1000) </tt></font><br>
<hr size="2" width="100%"><br>
Output error:<br>
<br>
<hr size="2" width="100%"><font color="#3333ff"><tt>-----------------------------------
<br>
Modelling summary <br>
----------------------------------- <br>
Number of species modelled : 2<br>
Sp281, Sp290<br>
<br>
numerical variables : Var1, Var2, Var3, Var4,
Var5, Var6, Var7<br>
<br>
<br>
number of evaluation repetitions : 2<br>
number of pseudo-absences runs : 2<br>
models selected : CTA, FDA<br>
total number of model runs : 24<br>
----------------------------------- <br>
<br>
<br>
##### Sp281 #####<br>
##### pseudo-absence run 1 #####<br>
Model=Classification tree <br>
50 Fold Cross-Validation <br>
Error in model.frame.default(Terms, newdata, na.action =
na.action, xlev = attr(object, : <br>
invalid type (list) for variable 'Var1'</tt></font><br>
<hr size="2" width="100%"><br>
Any assistance would be greatly appreciated,<br>
<br>
Chris<br>
<br>
___________________________________________________<br>
<br>
<b>Dr Christopher Hassall</b><br>
Ontario MRI Postdoctoral Fellow<br>
Carleton University<br>
Ottawa, ON,<br>
K1S 5B6 Canada <br>
Tel: 00 1 (613) 520 2600 (ext. 3866)<br>
Fax: 00 1 (613) 520 3539<br>
<a href="http://www.christopherhassall.com/">http://www.christopherhassall.com/</a><br>
___________________________________________________<br>
<br>
On 10/05/2012 4:57 PM, Oscar Javier Ramos wrote:
<blockquote
cite="mid:CALEwBbU7kR0D+=Tm1eqnafgW19GvDkUHA88VNje9=bSg4hK=nQ@mail.gmail.com"
type="cite">Hi,<br>
<br>
I'm beginning with BIOMOD. <br>
<br>
Just running the example on the "BIOMOD: Tutorial (February 13,
2012)" => data(Sp.Env)", <br>
<br>
I got the following error:<br>
<br>
------------------------------
<div id=":7z">----- <br>
Modelling summary <br>
----------------------------------- <br>
Number of species modelled : 2<br>
Sp281, Sp290<br>
<br>
numerical variables : Var1, Var2<br>
<br>
<br>
number of evaluation repetitions : 3<br>
number of pseudo-absences runs : 2<br>
models selected : ANN, CTA, GAM, GBM, GLM,
MARS, FDA, RF, SRE<br>
total number of model runs : 144<br>
----------------------------------- <br>
<br>
<br>
##### Sp281 #####<br>
##### pseudo-absence run 1 #####<br>
Model=Artificial Neural Network <br>
2 Fold Cross Validation + 3 Repetitions <br>
Calibration and evaluation phase: Nb of cross-validations: 3 <br>
<br>
Error in model.frame.default(formula = eval(parse(text =
paste("Target[Samp$calibration]", : <br>
invalid type (list) for variable 'Var1'<br>
<br>
<br>
Could anyone help me to overcome this problem?<br>
<br>
<br>
Thanks,<br>
<br>
Oscar<br>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
Biomod-commits mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Biomod-commits@lists.r-forge.r-project.org">Biomod-commits@lists.r-forge.r-project.org</a>
<a class="moz-txt-link-freetext" href="https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/biomod-commits">https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/biomod-commits</a>
</pre>
<br>
<div class="moz-signature">-- <br>
<br>
</div>
</blockquote>
</body>
</html>