title: Summary.glm to CSV file?
body: <p>I am struggling with printing results from "summary.glm" to a CSV file. My code, which is rather simple, is as follows:</p>
  
  <pre><code>results &lt;-glm(dv ~ iv + iv2, family=binomial, data=dataframe)
  results_df &lt;-summary.glm(results)
  write.csv(results_df, "myCSV.csv")
  </code></pre>
  
  <p>This yields the error: <code>cannot coerce class 'summary.glm' into a data.frame'</code>.</p>
  
  <p>All that I really need to do is export my coefficients, as odds ratios, into a CSV file that also includes standard errors and p-values. I'm sure there is a package to do this; I just haven't found it. Please help!</p>