<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <div class="moz-cite-prefix">Hi Kumar,<br>
      <br>
      Are you sure your <span style="font-family:"Courier
        New"">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.<br>
      <br>
      On 16/07/2012 03:05, Kumar Mainali wrote:<br>
    </div>
    <blockquote
cite="mid:CABK368jNoa0JYYDvw0robU565f7YJWGUVLhRfL4XjXH9KU6ntQ@mail.gmail.com"
      type="cite">
      <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 style="font-family:"Courier
            New"">Initial.State(Response
            = Resp.Var, <a moz-do-not-send="true" href="http://sp.name"
              target="_blank">sp.name</a> = "Something", Explanatory =
            Expl.Var,</span></p>
        <p class="MsoNormal"><span style="font-family:"Courier
            New"">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 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>
    </blockquote>
    <br>
    <br>
  </body>
</html>