title: R: speedglm predict does not work, can i modify object?
body: <p>Can anybody explain why <code>predict</code> does not work with <code>speedglm</code>?</p>
  
  <p>Working code:</p>
  
  <pre><code>library(speedglm)
  mtcars2&lt;-mtcars
  mtcars2$gear&lt;-as.factor(mtcars2$gear)
  mtcars_train&lt;-mtcars2[1:10,]
  mtcars_test&lt;-mtcars2[11:nrow(mtcars2),]
  model&lt;-speedglm(formula = cyl ~ gear,data = mtcars_train,family=poisson(link="log"))
  pred&lt;-predict(object = model, newdata = mtcars_test)
  pred
  </code></pre>
  
  <p>I get only NA's.</p>
  
  <p>Is it possible to modify the class of the <code>glm</code> object such that it uses the regular <code>predict</code> function? I mean, the <code>speedglm</code> object is the same form as a regular <code>glm</code> object, right?</p>
  
  <pre><code>class(model)
  #[1] "speedglm" "speedlm" 
  </code></pre>