Hi everyone,<div><br><div>I am new to BioMod and I have been using the Tutorial as an example to run some simple preliminary models on my data. Everything went well with running GLM, GAM and RF: I am getting predictions, I can evaluate variable importance etc., but when I try to convert back to binary data using CurrentPred, I get a couple different error messages.</div>
<div><br></div><div><div>First, when I use all models and binary transformation options I get:</div><div><br></div><div>CurrentPred(GAM=T, GLM=T, RF=T, BinRoc=T, BinKappa=T, BinTSS=T, FiltRoc=T, FiltKappa=T, FiltTSS=T)</div>
<div><br></div><div>Error in apply((x > y), 2, as.integer) : </div><div>  (list) object cannot be coerced to type 'integer'</div><div>In addition: Warning message:</div><div>In sweep(data.matrix(ProbData), 2, CutOffdata, FUN2) :</div>
<div>  length(STATS) or dim(STATS) do not match dim(x)[MARGIN]</div></div><div><br clear="all"><div>Then I try this:</div><div><br></div><div><div>CurrentPred(GAM=T, BinKappa=T)</div><div>Error in apply((x > y), 2, as.integer) : </div>
<div>  (list) object cannot be coerced to type 'integer'</div></div><div><br></div><div>Any combinations of models/conversion methods give similar error messages.</div><div>I am not sure what the problem is. I can provide more details on the steps prior to CurrentPred if needed.</div>
<div><br></div><div>Thank you in advance for your help...</div><div><br></div><div>Cheers,</div><div>Viorel</div><div><br></div><div>  </div><div><br></div>-- <br>Viorel D. Popescu<div>Postdoc</div><div>University of Califonia - Santa Cruz &</div>
<div>Simon Fraser University, Biological Sciences</div><br>
</div></div>