Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Clarify how pre-processing steps are related to model_default equations #257

Open
amanda-minter opened this issue Nov 15, 2024 · 1 comment

Comments

@amanda-minter
Copy link
Collaborator

Add comments to {epidemics} vignette to explain how pre-processing steps are related to how transmission is modelled in model_default. Specifically, this issue arose from the tutorials, the model code appears to be density dependent transmission, in the contact matrix preparation there is a division by population size meaning frequency dependent transmission.

Originally posted by @amanda-minter in epiverse-trace/tutorials-late#63 (comment)

@adamkucharski
Copy link
Member

adamkucharski commented Jan 21, 2025

To highlight specific code, we should explain why the transpose is done here in the vignettes (it is so the internal function that normalises to ensure correct R0, then divides through by demography vector, produces a matrix that matches the per-capita beta terms are correct):

contact_matrix <- t(contact_data$matrix)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants