<html><body><div style="color:#000; background-color:#fff; font-family:arial, helvetica, sans-serif;font-size:10pt"><div>Hi Wilfried and thanks for your email.</div><div><br></div><div><span style="color: rgb(69, 69, 69); font-family: Arial, Helvetica, sans-serif; font-size: 12px; ">>BIOMOD take categorical variables. Some technique do not (e.g. MARS) but they will be atomically excluded from the runs).</span><br style="color: rgb(69, 69, 69); font-family: Arial, Helvetica, sans-serif; font-size: 12px; "><span style="color: rgb(69, 69, 69); font-family: Arial, Helvetica, sans-serif; font-size: 12px; ">>Just make sure your variable is seen as categorical:</span><br style="color: rgb(69, 69, 69); font-family: Arial, Helvetica, sans-serif; font-size: 12px; "><br style="color: rgb(69, 69, 69); font-family: Arial, Helvetica, sans-serif; font-size: 12px; "><span style="color: rgb(69, 69, 69); font-family: Arial, Helvetica, sans-serif; font-size: 12px;
">>MyData = as.factor(MyData)</span><br style="color: rgb(69, 69, 69); font-family: Arial, Helvetica, sans-serif; font-size: 12px; "></div><div><br></div><div>Unfortunately, I'm still facing some trouble with this categorical variable:</div><div><br></div><div>1) I tried to plot the variables on the map by using:</div><div><br></div><div>multiple.plot(Expl.Var, LatLong[,1:2], cex=0.7)</div><div><br></div><div>and got this warning:</div><div><br></div><div>Error in Summary.factor(c(10L, 10L, 10L, 10L, 10L, 10L, 8L, 10L, 10L, :</div><div> min not meaningful for factors<br><br style="color: rgb(69, 69, 69); font-family: Arial, Helvetica, sans-serif; font-size: 12px; ">2) Please take a look as well at the warning below the following commands:</div><div><br></div><div>model <- glm(Sp1 ~ cld6190_ann + dtr6190_ann + ecoreg + frs6190_ann + h_dem + pre6190_ann + pre6190_l10 + pre6190_l1 + pre6190_l4 + pre6190_l7 + tmn6190_ann + tmp6190_ann +
tmx6190_ann + vap6190_ann, data = z)</div><div><br></div><div>Pred <- predict(model, Expl.Var, type="response")</div><div><br></div><div>Error: variable 'ecoreg' was fitted with type "numeric" but type "factor" was supplied<br><br style="color: rgb(69, 69, 69); font-family: Arial, Helvetica, sans-serif; font-size: 12px; "><br style="color: rgb(69, 69, 69); font-family: Arial, Helvetica, sans-serif; font-size: 12px; ">Cheers,</div><div><br></div><div>Andreas</div><div><br><span style="color: rgb(69, 69, 69); font-family: Arial, Helvetica, sans-serif; font-size: 12px; ">Le 21 f?vr. 2012 ? 11:08, Andreas Soteriades a ?crit :</span><br style="color: rgb(69, 69, 69); font-family: Arial, Helvetica, sans-serif; font-size: 12px; "><br style="color: rgb(69, 69, 69); font-family: Arial, Helvetica, sans-serif; font-size: 12px; "><span style="color: rgb(69, 69, 69); font-family: Arial, Helvetica, sans-serif; font-size: 12px; ">> Hi again,</span><br
style="color: rgb(69, 69, 69); font-family: Arial, Helvetica, sans-serif; font-size: 12px; "><span style="color: rgb(69, 69, 69); font-family: Arial, Helvetica, sans-serif; font-size: 12px; ">> </span><br style="color: rgb(69, 69, 69); font-family: Arial, Helvetica, sans-serif; font-size: 12px; "><span style="color: rgb(69, 69, 69); font-family: Arial, Helvetica, sans-serif; font-size: 12px; ">> I would like to play a little bit with BIOMOD by using the sample dataset for Bradypus Variegatus which is given in the MaxEnt tutorial. The data consist of : i) a dataset with the species' localities plus continuous bioclimatic variables, ii) a dataset of background points. Nevertheless, one of the variables is categorical and it describes potential vegetation classes. Its values are distinct, ranging from 1 to 14.</span><br style="color: rgb(69, 69, 69); font-family: Arial, Helvetica, sans-serif; font-size: 12px; "><span style="color: rgb(69, 69,
69); font-family: Arial, Helvetica, sans-serif; font-size: 12px; ">> </span><br style="color: rgb(69, 69, 69); font-family: Arial, Helvetica, sans-serif; font-size: 12px; "><span style="color: rgb(69, 69, 69); font-family: Arial, Helvetica, sans-serif; font-size: 12px; ">> Could you please let me know if- and how- I can use the above mentioned categorical variable in BIOMOD?</span><br style="color: rgb(69, 69, 69); font-family: Arial, Helvetica, sans-serif; font-size: 12px; "><span style="color: rgb(69, 69, 69); font-family: Arial, Helvetica, sans-serif; font-size: 12px; ">> </span><br style="color: rgb(69, 69, 69); font-family: Arial, Helvetica, sans-serif; font-size: 12px; "><span style="color: rgb(69, 69, 69); font-family: Arial, Helvetica, sans-serif; font-size: 12px; ">> Cheers,</span><br style="color: rgb(69, 69, 69); font-family: Arial, Helvetica, sans-serif; font-size: 12px; "><span style="color: rgb(69, 69, 69);
font-family: Arial, Helvetica, sans-serif; font-size: 12px; ">> </span><br style="color: rgb(69, 69, 69); font-family: Arial, Helvetica, sans-serif; font-size: 12px; "><span style="color: rgb(69, 69, 69); font-family: Arial, Helvetica, sans-serif; font-size: 12px; ">> Andreas</span><br style="color: rgb(69, 69, 69); font-family: Arial, Helvetica, sans-serif; font-size: 12px; "><span style="color: rgb(69, 69, 69); font-family: Arial, Helvetica, sans-serif; font-size: 12px; ">> _______________________________________________</span><br style="color: rgb(69, 69, 69); font-family: Arial, Helvetica, sans-serif; font-size: 12px; "><span style="color: rgb(69, 69, 69); font-family: Arial, Helvetica, sans-serif; font-size: 12px; ">> Biomod-commits mailing list</span><br style="color: rgb(69, 69, 69); font-family: Arial, Helvetica, sans-serif; font-size: 12px; "><span style="color: rgb(69, 69, 69); font-family: Arial, Helvetica, sans-serif;
font-size: 12px; ">> </span><a ymailto="mailto:Biomod-commits@lists.r-forge.r-project.org" href="mailto:Biomod-commits@lists.r-forge.r-project.org" style="color: rgb(35, 71, 134); outline-width: 0px; outline-style: initial; outline-color: initial; font-family: Arial, Helvetica, sans-serif; font-size: 12px; ">Biomod-commits@lists.r-forge.r-project.org</a><br style="color: rgb(69, 69, 69); font-family: Arial, Helvetica, sans-serif; font-size: 12px; "><span style="color: rgb(69, 69, 69); font-family: Arial, Helvetica, sans-serif; font-size: 12px; ">> </span><a href="https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/biomod-commits" target="_blank" style="color: rgb(35, 71, 134); outline-width: 0px; outline-style: initial; outline-color: initial; font-family: Arial, Helvetica, sans-serif; font-size: 12px; ">https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/biomod-commits</a><br style="color: rgb(69, 69, 69); font-family:
Arial, Helvetica, sans-serif; font-size: 12px; "><br style="color: rgb(69, 69, 69); font-family: Arial, Helvetica, sans-serif; font-size: 12px; "><span style="color: rgb(69, 69, 69); font-family: Arial, Helvetica, sans-serif; font-size: 12px; ">--------------------------</span><br style="color: rgb(69, 69, 69); font-family: Arial, Helvetica, sans-serif; font-size: 12px; "><span style="color: rgb(69, 69, 69); font-family: Arial, Helvetica, sans-serif; font-size: 12px; ">Dr. Wilfried Thuiller</span><br style="color: rgb(69, 69, 69); font-family: Arial, Helvetica, sans-serif; font-size: 12px; "><span style="color: rgb(69, 69, 69); font-family: Arial, Helvetica, sans-serif; font-size: 12px; ">Laboratoire d'Ecologie Alpine, UMR CNRS 5553</span><br style="color: rgb(69, 69, 69); font-family: Arial, Helvetica, sans-serif; font-size: 12px; "><span style="color: rgb(69, 69, 69); font-family: Arial, Helvetica, sans-serif; font-size: 12px; ">Universit? Joseph
Fourier</span><br style="color: rgb(69, 69, 69); font-family: Arial, Helvetica, sans-serif; font-size: 12px; "><span style="color: rgb(69, 69, 69); font-family: Arial, Helvetica, sans-serif; font-size: 12px; ">BP53, 38041 Grenoble cedex 9, France</span><br style="color: rgb(69, 69, 69); font-family: Arial, Helvetica, sans-serif; font-size: 12px; "><span style="color: rgb(69, 69, 69); font-family: Arial, Helvetica, sans-serif; font-size: 12px; ">tel: +33 (0)4 76 51 44 97</span><br style="color: rgb(69, 69, 69); font-family: Arial, Helvetica, sans-serif; font-size: 12px; "><span style="color: rgb(69, 69, 69); font-family: Arial, Helvetica, sans-serif; font-size: 12px; ">fax: +33 (0)4 76 51 42 79</span><br style="color: rgb(69, 69, 69); font-family: Arial, Helvetica, sans-serif; font-size: 12px; "><br style="color: rgb(69, 69, 69); font-family: Arial, Helvetica, sans-serif; font-size: 12px; "><span style="color: rgb(69, 69, 69); font-family: Arial,
Helvetica, sans-serif; font-size: 12px; ">Email: </span><a ymailto="mailto:wilfried.thuiller@ujf-grenoble.fr" href="mailto:wilfried.thuiller@ujf-grenoble.fr" style="color: rgb(35, 71, 134); outline-width: 0px; outline-style: initial; outline-color: initial; font-family: Arial, Helvetica, sans-serif; font-size: 12px; ">wilfried.thuiller@ujf-grenoble.fr</a><br style="color: rgb(69, 69, 69); font-family: Arial, Helvetica, sans-serif; font-size: 12px; "><span style="color: rgb(69, 69, 69); font-family: Arial, Helvetica, sans-serif; font-size: 12px; ">Personal website: </span><a href="http://www.will.chez-alice.fr/" target="_blank" style="color: rgb(35, 71, 134); outline-width: 0px; outline-style: initial; outline-color: initial; font-family: Arial, Helvetica, sans-serif; font-size: 12px; "><span class="yshortcuts" id="lw_1329822208_8">http://www.will.chez-alice.fr</span></a><br style="color: rgb(69, 69, 69); font-family: Arial, Helvetica,
sans-serif; font-size: 12px; "><span style="color: rgb(69, 69, 69); font-family: Arial, Helvetica, sans-serif; font-size: 12px; ">Team website: </span><a href="http://www-leca.ujf-grenoble.fr/equipes/emabio.htm" target="_blank" style="color: rgb(35, 71, 134); outline-width: 0px; outline-style: initial; outline-color: initial; font-family: Arial, Helvetica, sans-serif; font-size: 12px; "><span class="yshortcuts" id="lw_1329822208_9">http://www-leca.ujf-grenoble.fr/equipes/emabio.htm</span></a><br style="color: rgb(69, 69, 69); font-family: Arial, Helvetica, sans-serif; font-size: 12px; "><br style="color: rgb(69, 69, 69); font-family: Arial, Helvetica, sans-serif; font-size: 12px; "><span style="color: rgb(69, 69, 69); font-family: Arial, Helvetica, sans-serif; font-size: 12px; ">ERC Starting Grant TEEMBIO project: </span><a href="http://www.will.chez-alice.fr/Research.html" target="_blank" style="color: rgb(35, 71, 134); outline-width: 0px;
outline-style: initial; outline-color: initial; font-family: Arial, Helvetica, sans-serif; font-size: 12px; "><span class="yshortcuts" id="lw_1329822208_10">http://www.will.chez-alice.fr/Research.html</span></a><br style="color: rgb(69, 69, 69); font-family: Arial, Helvetica, sans-serif; font-size: 12px; "><span style="color: rgb(69, 69, 69); font-family: Arial, Helvetica, sans-serif; font-size: 12px; ">FP6 European EcoChange project: </span><a href="http://www.ecochange-project.eu/" target="_blank" style="color: rgb(35, 71, 134); outline-width: 0px; outline-style: initial; outline-color: initial; font-family: Arial, Helvetica, sans-serif; font-size: 12px; "><span class="yshortcuts" id="lw_1329822208_11">http://www.ecochange-project.eu</span></a><br style="color: rgb(69, 69, 69); font-family: Arial, Helvetica, sans-serif; font-size: 12px; "><br style="color: rgb(69, 69, 69); font-family: Arial, Helvetica, sans-serif; font-size: 12px; "><br
style="color: rgb(69, 69, 69); font-family: Arial, Helvetica, sans-serif; font-size: 12px; "><font color="#454545" face="Arial, Helvetica, sans-serif"><span style="font-size: 12px;"><br></span></font></div></div></body></html>