title: What am I doing wrong with regsubsets?
body: <p>My assignment is:</p>
  
  <p>Use the regsubsets function in the leaps package to perform an exhaustive search</p>
  
  <p>For best subsets regression models. Then compare the adjusted <code>r^2</code> selected for each</p>
  
  <p>Subset size. Which model is best according to this criterion? You will have to</p>
  
  <p>Look at components of summary.regsubsets. There you can find the relevant.</p>
  
  <p>Values of different optimality criteria for the best model selected at each size.</p>
  
  <p>I have a data set cigs on which I call</p>
  
  <pre><code>q=regsubsets(Sales~Age+HS+Income+Black+Female+Price, data=cigs, method="exhaustive")
  </code></pre>
  
  <p>All of those are correct variables</p>
  
  <pre><code>summary(q)
  </code></pre>
  
  <p>returns</p>
  
  <pre><code>Subset selection object
  Call: regsubsets.formula(Sales ~ Age + HS + Income + Black + Female + 
      Price, data = cigs, method = "exhaustive")
  6 Variables  (and intercept)
         Forced in Forced out
  Age        FALSE      FALSE
  HS         FALSE      FALSE
  Income     FALSE      FALSE
  Black      FALSE      FALSE
  Female     FALSE      FALSE
  Price      FALSE      FALSE
  1 subsets of each size up to 6
  Selection Algorithm: exhaustive
           Age HS  Income Black Female Price
  1  ( 1 ) " " " " "*"    " "   " "    " "  
  2  ( 1 ) " " " " "*"    " "   " "    "*"  
  3  ( 1 ) "*" " " "*"    " "   " "    "*"  
  4  ( 1 ) "*" " " "*"    "*"   " "    "*"  
  5  ( 1 ) "*" " " "*"    "*"   "*"    "*"  
  6  ( 1 ) "*" "*" "*"    "*"   "*"    "*"
  </code></pre>
  
  <p>Any idea why this does not give me any information about <code>r^2</code>?</p>