Skip to content

dic.fit.mcmc: Switch likelihood to primarycensored #62

@seabbs

Description

@seabbs

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).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions