title: Random forest subscript out of bounds error?
body: <p>I am trying to create a random forest in R, using the following code:</p>
  
  <pre><code>forest &lt;-
  randomForest(Responder_7yr ~ CD4_num_log + CD8_num_log + anergy_CD8_num_log +
               anergy_CD4_num_log + part_exhaust_CD8_num_log + exhaustion_CD8_num_log + 
               exhaustion_CD4_num_log + senescence_CD8_num_log + 
               senescence_CD4_num_log + tcm_CD4negCD8pos_num_log + 
               nTreg_CD4posCD8neg_num_log + ln_cpep + A1C + Ins, 
               data=resp, na.action=na.omit, importance=TRUE)
  </code></pre>
  
  <p>I'm getting the following error:</p>
  
  <pre><code>Error in `[.default`(table(observed = y, predicted = out.class), levels(y),  : 
    subscript out of bounds
  </code></pre>
  
  <p>I've confirmed all predictors are in the proper format, and the outcome is in factor format. Any help is greatly appreciated!</p>