You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As raised in the PR #289, the create_progression_process() function (disease_progression.R), which governs the way individuals move between some pairs of states, has an argument rate which is currently passed mean state duration time. Within the function, the inverse of this rate argument is used to sample individuals to move between states.
While a fix has been suggested for naming the Bitset$sample() function in the individual package, in the meantime the malariasimulation code could be made clearer by passing the create_progression_process() function the rate in each instance in which it is called (e.g. 1/parameters$dt for transitions from the Tr to the S state).
The text was updated successfully, but these errors were encountered:
The test flagged still passes. As I've now merged the SPC (#289) branch to dev, which changes the way the process moving individuals from Tr -> S is called, I need to align these changes to the updated version.
As raised in the PR #289, the
create_progression_process()
function (disease_progression.R), which governs the way individuals move between some pairs ofstates
, has an argumentrate
which is currently passed mean state duration time. Within the function, the inverse of thisrate
argument is used to sample individuals to move between states.While a fix has been suggested for naming the
Bitset$sample()
function in the individual package, in the meantime the malariasimulation code could be made clearer by passing thecreate_progression_process()
function the rate in each instance in which it is called (e.g.1/parameters$dt
for transitions from the Tr to the S state).The text was updated successfully, but these errors were encountered: