delay parameters, like days_incubation that are <=1 correspond to time periods that are shorter than the model step. this setting leads to negative state variables as the model oversteps the state update when extrapolating flows to one time step.
errors should be added to combat this. need to think a bit more carefully about where to add them given that each model has different parameters... also need to think about bypass of epi params via values$flows... maybe it's enough to safeguard the helper functions that i use to make values$flows as these are also used when calculating flows directly from epi params? this is only a feature of the hosp model...
delay parameters, like
days_incubationthat are <=1 correspond to time periods that are shorter than the model step. this setting leads to negative state variables as the model oversteps the state update when extrapolating flows to one time step.errors should be added to combat this. need to think a bit more carefully about where to add them given that each model has different parameters... also need to think about bypass of epi params via
values$flows... maybe it's enough to safeguard the helper functions that i use to makevalues$flowsas these are also used when calculating flows directly from epi params? this is only a feature of thehospmodel...