Skip to content

Instantly share code, notes, and snippets.

@khuyentran1401
Last active January 7, 2022 02:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save khuyentran1401/647a79cce9fe6c8093c6764e79f4a131 to your computer and use it in GitHub Desktop.
Save khuyentran1401/647a79cce9fe6c8093c6764e79f4a131 to your computer and use it in GitHub Desktop.
import arviz as az
import bambi as bmb
# Convert to string
sample1.YearsCoding = sample1.YearsCoding.astype(str)
# Build model
model1 = bmb.Model("ConvertedSalary ~ YearsCoding", sample1)
result1 = model1.fit(random_seed=0)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment