title: How to speed up GLM estimation?
body: <p>I am using RStudio 0.97.320 (R 2.15.3) on Amazon EC2. My data frame has 200k rows and 12 columns. </p>
  
  <p>I am trying to fit a logistic regression with approximately 1500 parameters. </p>
  
  <p>R is using 7% CPU and has 60+GB memory and is still taking a very long time.</p>
  
  <p>Here is the code:</p>
  
  <pre><code>glm.1.2 &lt;- glm(formula = Y ~ factor(X1) * log(X2) * (X3 + X4 * (X5 + I(X5^2)) * (X8 + I(X8^2)) + ((X6 + I(X6^2)) * factor(X7))), 
    family = binomial(logit), data = df[1:150000,])
  </code></pre>
  
  <p>Any suggestions to speed this up by a significant amount?</p>