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

Consider how users could extend formula used to include other population stratifications (sex, workplace, etc) #178

Open
njtierney opened this issue Jan 15, 2025 · 0 comments

Comments

@njtierney
Copy link
Collaborator

One approach could be that users change the formula e.g., add y ~ s(workplace), and then we parse out the new stratification term and then manage all the data manipulation etc.

It might simpler perhaps though to add something a stratification argument and then the user passes the bare variable name (bare name, as this indicates that this is part of the data).

e.g.,

fit_single_contact_model(
  contact_data,
  population,
  symmetrical = TRUE,
  # this is the new argument
  stratification = workplace_name,
  school_demographics = NULL,
  work_demographics = NULL
)

And the populate the stratification argument across the relevant parts of the package code

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

1 participant