<font><font face="tahoma,sans-serif">Dear Damien,</font></font><div><font><font face="tahoma,sans-serif"><br></font></font></div><div><font><font face="tahoma,sans-serif">Thank you for prompt and helpful response. Indeed, that was the problem. THANKS.</font></font></div>

<div><font><font face="tahoma,sans-serif"><br></font></font></div><div><font><font face="tahoma,sans-serif">Regards,</font></font></div><div><font><font face="tahoma,sans-serif">Kumar<br></font></font><br><div class="gmail_quote">

On Mon, Jul 16, 2012 at 3:52 AM, Damien Georges <span dir="ltr"><<a href="mailto:damien.georges2@gmail.com" target="_blank">damien.georges2@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">


  
    
  
  <div bgcolor="#FFFFFF" text="#000000">
    <div>Hi Kumar,<br>
      <br>
      Are you sure your <span>Independent variable are in the</span> rigth format?
      <br>
      e.g: <br>
          - have you both presences and absences in your
      IndependentResponse var? , <br>
          - did you removed all NAs from your IndependentExplanatory?<br>
      <br>
      You can easily check it printing your variables summaries (i.e
      summary(Expl.VarTest) )<br>
      <br>
      Best,<br>
      <br>
      Damien.<div><div class="h5"><br>
      <br>
      On 16/07/2012 03:05, Kumar Mainali wrote:<br>
    </div></div></div>
    <blockquote type="cite"><div><div class="h5">
      <div><font face="tahoma, sans-serif">Hello BIOMODellers,</font></div>
      <div><font face="tahoma, sans-serif"><br>
        </font></div>
      <div><font face="tahoma, sans-serif">I am working on BIOMOD
          v 1.1-7.02 in R 2.14.1 and am trying to run four models with
          independent test data. After running the first model for a
          while, it gives me the following error message and it stops: "</font><span style="font-family:'Courier New'">number of columns of result
          is not a multiple of vector length (arg 1)</span><span style="font-family:tahoma,sans-serif">". Just to see what
          would happen, I used the same dataset used in building model
          to test it. This time, there was no error message. </span></div>
      <div><span style="font-family:tahoma,sans-serif"><br>
        </span></div>
      <div><span style="font-family:tahoma,sans-serif">Thanks in
          advance.</span></div>
      <div><span style="font-family:tahoma,sans-serif">- Kumar</span></div>
      <div><font face="tahoma, sans-serif"><br>
        </font></div>
      <div>
        <p class="MsoNormal"><span>Initial.State(Response
            = Resp.Var, <a href="http://sp.name" target="_blank">sp.name</a> = "Something", Explanatory =
            Expl.Var,</span></p>
        <p class="MsoNormal"><span>IndependentResponse
            = Resp.VarTest, IndependentExplanatory = Expl.VarTest)</span></p>
      </div>
      <div><font face="tahoma, sans-serif"><br>
        </font></div>
      <div><span style="font-family:'Courier New'">> Models(GLM = T,
          TypeGLM =
          "poly", Test = "AIC",</span></div>
      <div>
        <p class="MsoNormal" style="margin-bottom:0in;margin-bottom:.0001pt"><span style="font-family:"Courier New"">+ GBM = T,
            No.trees = 5000,</span></p>
        <p class="MsoNormal" style="margin-bottom:0in;margin-bottom:.0001pt"><span style="font-family:"Courier New"">+ GAM = T,
            Spline = 3, CTA = F, CV.tree = 50,</span></p>
        <p class="MsoNormal" style="margin-bottom:0in;margin-bottom:.0001pt"><span style="font-family:"Courier New"">+ ANN = F,
            CV.ann = 2,</span></p>
        <p class="MsoNormal" style="margin-bottom:0in;margin-bottom:.0001pt"><span style="font-family:"Courier New"">+ SRE = F,
            quant=0.025,</span></p>
        <p class="MsoNormal" style="margin-bottom:0in;margin-bottom:.0001pt"><span style="font-family:"Courier New"">+ FDA = F,</span></p>
        <p class="MsoNormal" style="margin-bottom:0in;margin-bottom:.0001pt"><span style="font-family:"Courier New"">+ MARS = F,</span></p>
        <p class="MsoNormal" style="margin-bottom:0in;margin-bottom:.0001pt"><span style="font-family:"Courier New"">+ RF = T,</span></p>
        <p class="MsoNormal" style="margin-bottom:0in;margin-bottom:.0001pt"><span style="font-family:"Courier New"">+ NbRunEval = 1,
            DataSplit = 100,
            Yweights=NULL,</span></p>
        <p class="MsoNormal" style="margin-bottom:0in;margin-bottom:.0001pt"><span style="font-family:"Courier New"">+ Roc = T,
            Optimized.Threshold.Roc = T, Kappa
            = T, TSS=T,</span></p>
        <p class="MsoNormal" style="margin-bottom:0in;margin-bottom:.0001pt"><span style="font-family:"Courier New"">+
            KeepPredIndependent = T, VarImport=T,</span></p>
        <p class="MsoNormal" style="margin-bottom:0in;margin-bottom:.0001pt"><span style="font-family:"Courier New"">+ NbRepPA=1,
            strategy="random",
            coor=LatLong, nb.absences=2329)</span></p>
        <p class="MsoNormal" style="margin-bottom:0in;margin-bottom:.0001pt"><span style="font-family:"Courier New""> </span><span style="font-family:'Courier New'"> </span></p>
        <p class="MsoNormal" style="margin-bottom:0in;margin-bottom:.0001pt"><span style="font-family:"Courier New""> </span></p>
        <p class="MsoNormal" style="margin-bottom:0in;margin-bottom:.0001pt"><span style="font-family:"Courier New"">#####             
            pseudo-absence run 1                 #####</span></p>
        <p class="MsoNormal" style="margin-bottom:0in;margin-bottom:.0001pt"><span style="font-family:"Courier New"">Model=GAM spline
          </span></p>
        <p class="MsoNormal" style="margin-bottom:0in;margin-bottom:.0001pt"><span style="font-family:"Courier New"">        
            3  Degrees of smoothing </span></p>
        <p class="MsoNormal" style="margin-bottom:0in;margin-bottom:.0001pt"><span style="font-family:"Courier New"">Evaluating
            Predictor Contributions in  GAM ... </span></p>
        <p class="MsoNormal" style="margin-bottom:0in;margin-bottom:.0001pt"><span style="font-family:"Courier New"">Error in
            KappaStat(Misc) : subscript out of
            bounds</span></p>
        <p class="MsoNormal" style="margin-bottom:0in;margin-bottom:.0001pt"><span style="font-family:"Courier New"">In addition:
            Warning message:</span></p>
        <p class="MsoNormal" style="margin-bottom:0in;margin-bottom:.0001pt"><span style="font-family:"Courier New"">In rbind(Misc,
            a) :</span></p>
        <p class="MsoNormal" style="margin-bottom:0in;margin-bottom:.0001pt"><span style="font-family:"Courier New""> 
            number of columns of result is not a multiple of vector
            length (arg 1)</span></p>
        <p class="MsoNormal" style="margin-bottom:0in;margin-bottom:.0001pt"><span style="font-family:"Courier New""><br>
          </span></p>
        <p class="MsoNormal" style="margin-bottom:0in;margin-bottom:.0001pt"><span style="font-family:"Courier New"">>
            Evaluation.results.Kappa</span></p>
        <p class="MsoNormal" style="margin-bottom:0in;margin-bottom:.0001pt"><span style="font-family:"Courier New"">$Something_PA1</span></p>
        <p class="MsoNormal" style="margin-bottom:0in;margin-bottom:.0001pt"><span style="font-family:"Courier New"">   
            Cross.validation indepdt.data total.score Cutoff Sensitivity
            Specificity</span></p>
        <p class="MsoNormal" style="margin-bottom:0in;margin-bottom:.0001pt"><span style="font-family:"Courier New"">GAM              
            NA           NA          NA    
            NA          NA          NA</span></p>
        <p class="MsoNormal" style="margin-bottom:0in;margin-bottom:.0001pt"><span style="font-family:"Courier New"">GBM              
            NA           NA          NA    
            NA          NA          NA</span></p>
        <p class="MsoNormal" style="margin-bottom:0in;margin-bottom:.0001pt"><span style="font-family:"Courier New"">GLM              
            NA           NA          NA    
            NA          NA          NA</span></p>
        <p class="MsoNormal" style="margin-bottom:0in;margin-bottom:.0001pt"><span style="font-family:"Courier New"">RF               
            NA           NA          NA    
            NA          NA          NA</span></p>
        <p class="MsoNormal" style="margin-bottom:0in;margin-bottom:.0001pt"><span style="font-family:"Courier New""> </span></p>
        <p class="MsoNormal" style="margin-bottom:0in;margin-bottom:.0001pt"><span style="font-family:"Courier New"">>
            Evaluation.results.Roc</span></p>
        <p class="MsoNormal" style="margin-bottom:0in;margin-bottom:.0001pt"><span style="font-family:"Courier New"">$Something_PA1</span></p>
        <p class="MsoNormal" style="margin-bottom:0in;margin-bottom:.0001pt"><span style="font-family:"Courier New"">   
            Cross.validation indepdt.data total.score Cutoff Sensitivity
            Specificity</span></p>
        <p class="MsoNormal" style="margin-bottom:0in;margin-bottom:.0001pt"><span style="font-family:"Courier New"">GAM             
            NaN         <NA>       0.817 493.52      74.168     
            74.109</span></p>
        <p class="MsoNormal" style="margin-bottom:0in;margin-bottom:.0001pt"><span style="font-family:"Courier New"">GBM            
            <NA>         <NA>        <NA>  
            <NA>        <NA>        <NA></span></p>
        <p class="MsoNormal" style="margin-bottom:0in;margin-bottom:.0001pt"><span style="font-family:"Courier New"">GLM            
            <NA>         <NA>        <NA>  
            <NA>        <NA>        <NA></span></p>
        <p class="MsoNormal" style="margin-bottom:0in;margin-bottom:.0001pt"><span style="font-family:"Courier New"">RF             
            <NA>         <NA>        <NA>  
            <NA>        <NA>        <NA></span></p>
      </div>
      <div><font face="tahoma, sans-serif"><br>
        </font></div>
      <div>-- </div>
      <font color="#666666" face="tahoma, sans-serif">Section of
        Integrative Biology<br>
        University of Texas at Austin<br>
        Austin, Texas 78712, USA</font><br>
      <br>
      <fieldset></fieldset>
      <br>
      </div></div><pre>_______________________________________________
Biomod-commits mailing list
<a href="mailto:Biomod-commits@lists.r-forge.r-project.org" target="_blank">Biomod-commits@lists.r-forge.r-project.org</a>
<a href="https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/biomod-commits" target="_blank">https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/biomod-commits</a></pre>
    </blockquote>
    <br>
    <br>
  </div>

<br>_______________________________________________<br>
Biomod-commits mailing list<br>
<a href="mailto:Biomod-commits@lists.r-forge.r-project.org">Biomod-commits@lists.r-forge.r-project.org</a><br>
<a href="https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/biomod-commits" target="_blank">https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/biomod-commits</a><br></blockquote></div><br><br clear="all">

<div><br></div>-- <br><font color="#666666" face="tahoma, sans-serif">Section of Integrative Biology<br>University of Texas at Austin<br>Austin, Texas 78712, USA</font><br>
</div>