Last active
August 22, 2024 17:35
-
-
Save ian-whitestone/2a6bd08971bbdf9aa105aa6da565504a to your computer and use it in GitHub Desktop.
Code for the choosing your randomization unit post - https://ianwhitestone.work/choosing-randomization-unit/
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
To anyone reading this who came from the blog post, there's two things in this code that I didn't actually talk about (because they'll be leveraged in a future post and I was too lazy to remove them):
run_simulation
function I have these arguments:This lets me specify a decay function that maps the relationship between sessions per user and conversion rate - i.e. something like this: