title: R - How to Extract T-Statistics From Ridge Regression Results
body: <p>I am making use of the <a href="http://cran.r-project.org/web/packages/ridge/ridge.pdf" rel="nofollow">ridge regression package</a> in R, but am having trouble extracting T-statistics, p values in the the coefficients list.</p>
  
  <p>Here is some sample code from <a href="http://www.inside-r.org/packages/cran/ridge/docs/linearRidge" rel="nofollow">here</a>;</p>
  
  <pre><code>data(GenCont)
  mod &lt;- linearRidge(Phenotypes ~ ., data = as.data.frame(GenCont))
  summary(mod)
  </code></pre>
  
  <p>This returns</p>
  
  <pre><code>Call:
  linearRidge(formula = Phenotypes ~ ., data = as.data.frame(GenCont))
  
  Coefficients:
               Estimate Scaled estimate Std. Error (scaled) t value (scaled) Pr(&gt;|t|)    
  (Intercept)  1.533386              NA                  NA               NA       NA    
  SNP1         0.277296        4.045409            0.266120           15.201  &lt; 2e-16 ***
  SNP2        -0.110458       -1.256154            0.216332            5.807 6.38e-09 ***
  </code></pre>
  
  <p>But I want to access the data in "coefficients" programmatically. I understand that if i were using lm, then something along the lines of </p>
  
  <pre><code>coef(summary(mod))
  </code></pre>
  
  <p>should work, but this does not seem to do what I am after. I simply get a NULL.</p>
  
  <p>Any ideas on how to access this data please?</p>