title: Extract pvalue from glm
body: <p>I'm running many regressions and am only interested in the effect on the coefficient and p-value of one particular variable. So, in my script, I'd like to be able to just extract the p-value from the glm summary (getting the coefficient itself is easy). The only way I know of to view the p-value is using summary(myReg). Is there some other way?</p>
  
  <p>e.g.:</p>
  
  <pre><code>fit &lt;- glm(y ~ x1 + x2, myData)
  x1Coeff &lt;- fit$coefficients[2] # only returns coefficient, of course
  x1pValue &lt;- ???
  </code></pre>
  
  <p>I've tried treating <code>fit$coefficients</code> as a matrix, but am still unable to simply extract the p-value. </p>
  
  <p>Is it possible to do this?</p>
  
  <p>Thanks!</p>