RTIInternational / virtual-opioid-user

Continuous model of an individual's opioid user over time
Other
1 stars 1 forks source link

updated simulation to include dose, counterfeit, and fentanyl variability #36

Closed berghammeraj closed 1 year ago

berghammeraj commented 2 years ago

updated simulation to include dose, counterfeit, and fentanyl variability --still needs testing and some documentation

sandypreiss commented 2 years ago

Logic looks good, and I like the distinction of source variability and dose variability from a conceptual standpoint.

My only concern is that fentanyl_variability and fentanyl_prob are somewhat duplicative, though really in name only. fentanyl_prob is controlling the likelihood that a dose of another opioid will be way stronger than expected, while fentanyl_variability is adding an additional layer of variability for doses that are known to be fentanyl. I think we definitely want to keep the first, and I could be convinced to keep the latter. If so, we should probably come up with clearer names... I've been thinking for a while now that bad_batch_prob is a better name for fentanyl_prob, so maybe this should spur that change.

berghammeraj commented 2 years ago

That's a good call, I still need to test, but pushed the name changes and removed the else statement.