title: Speeglm $ operator is invalid for atomic vectors
body: <p>I am trying to execute the following code of a binary logit:</p>
  
  <pre><code>mylogit &lt;- speedglm(dependent_variable ~ InterestRate, data = my_data, family = "binomial")
  </code></pre>
  
  <p>But I get the following error:</p>
  
  <pre><code>&gt; mylogit &lt;- speedglm(dependent_variable ~ InterestRate, data = my_data, family = "binomial")
  Error: $ operator is invalid for atomic vectors
  </code></pre>
  
  <p>Here are the heads of the variables:</p>
  
  <pre><code>&gt; head(my_data$dependent_variable)
  [1] 0 1 1 1 1 1
  &gt; head(my_data$InterestRate)
  [1] "0.165500" "0.165500" "0.165500" "0.165500" "0.165500" "0.165500"
  </code></pre>
  
  <p>Any ideas how to fix this?</p>
  
  <p>EDIT:</p>
  
  <p>Changing </p>
  
  <pre><code>family = "binomial"
  </code></pre>
  
  <p>to</p>
  
  <pre><code>family=binomial('logit')
  </code></pre>
  
  <p>seems to make it work</p>