Skip to content

Instantly share code, notes, and snippets.

@emredjan
Created April 23, 2018 17:17
Show Gist options
  • Save emredjan/817bf23fd37996883de98532ebef465b to your computer and use it in GitHub Desktop.
Save emredjan/817bf23fd37996883de98532ebef465b to your computer and use it in GitHub Desktop.
model_f = 'mpg ~ cylinders + \
displacement + \
horsepower + \
weight + \
acceleration + \
year + \
origin'
model = smf.ols(formula=model_f, data=auto)
model_fit = model.fit()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment