Skip to content

Instantly share code, notes, and snippets.

@ayoskovich
Created September 4, 2020 14:16
Show Gist options
  • Save ayoskovich/c4c87916593aada1e96dbb40475f3a1c to your computer and use it in GitHub Desktop.
Save ayoskovich/c4c87916593aada1e96dbb40475f3a1c to your computer and use it in GitHub Desktop.
Set the reference category when using statsmodels
model = ols("SalePrice ~ C(LandContour, Treatment(reference='Lvl'))", data=df).fit()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment