-
Notifications
You must be signed in to change notification settings - Fork 5
Description
I was just looking through this to see what can be done about serial interval estimation in EpiEstim not supporting right truncation adjustment (which I think is somewhat critical given the user base and common usage imo) mrc-ide/EpiEstim#186. It looks like one option could be to modify dic.fit and dic.fit.mcmc to use the R side likelihoods from primarycensored (https://primarycensored.epinowcast.org/reference/dprimarycensored.html) this would give you many more distributions and both upper and lower bound truncation support.
One complexity is that package achieves its flexibility by modelling the intervals as a primary (hence the name) and secondary event interval - the maths shows this shakes out to the same thing but it means the inputs differ. I haven't looked in detail at your interface so perhaps that isn't an issue.
I can imagine that you might not want to make significant changes to this package as it will drift it from the target paper which is fair enough. In that case I think it would be great to consider adding some warnings about settings where the current functionality will give misleading results (i.e. outbreaks).