title: Getting AUC from sklearn using preds from Statsmodel instance
body: <p>I have a logistic regression that I want to know the AUC for.</p>
  <p>I created the logistic regression model using <code>statsmodels</code>:</p>
  <pre><code>import statsmodels.api as sm
  
  y = generate_data(dependent_var) # pseudocode
  X = generate_data(independent_var) # pseudocode
  
  X['constant'] = 1
  
  logit_model=sm.Logit(y,X)
  result=logit_model.fit()
  </code></pre>
  <p>Then, I use <code>sklearn</code> to get an AUC score for my model predictions:</p>
  <pre><code>from sklearn.metrics import roc_auc_score
  roc_auc_score(y, result.predict())
  </code></pre>
  <p>The code runs and I get a AUC score, I just want to make sure I am passing variables between the package calls correctly.</p>