Guest User

Untitled

a guest
Dec 15th, 2018
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.17 KB | None | 0 0
  1. import statsmodels.api as sm
  2.  
  3. y = crimeData['crmrte']
  4. X = crimeData['density']
  5. X = sm.add_constant(X) # To add an intercept to our model
  6. model = sm.OLS(y, X).fit()
  7. model.summary()
Add Comment
Please, Sign In to add comment