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

[BUG]: Some states in a multi-stratified model are not shown correctly as circle-packed nodes #4578

Closed
liunelson opened this issue Aug 26, 2024 · 0 comments · Fixed by #4587
Assignees
Labels
bug Something isn't working

Comments

@liunelson
Copy link
Member

Describe the bug

I have this model:
https://app.staging.terarium.ai/projects/34e7b955-f408-4e8b-be27-9429480ad6aa/model/7508b278-caea-4d35-bb17-097bdd463f07

It was created by stratifying a base SEIRHD model 4 times consecutively:

  1. only the S node, by "vaccination", over two strata ("unvaccinated", "vaccinated")
  2. only the S_vaccinated node, by "vaccine", over three strata ("pfizer", "moderna", "jj")
  3. only the S_vaccinated_pfizer and S_vaccinated_moderna nodes, by "dose", over three strata ("one", "two", "diff")
  4. all nodes except D, by "age", over three strata ("0to9", "10to19", "20above")

Expected behavior
Since the nodes of this model do not have the same stratification depth, I expected to see some nodes like E, I, R, H to have two levels (correct) and D have one (correct), while the S node have more complex structure.

The S node should have 5 levels:

S = [S]
   = [[S_unvaccinated, S_vaccinated]]
   = [[S_unvaccinated, S_vaccinated = [S_vaccinated_jj, S_vaccinated_pfizer, S_vaccinated_moderna]]]
   = [[S_unvaccinated, [S_vaccinated_jj, [S_vaccinated_pfizer_one, S_vaccinated_pfizer_two, S_vaccinated_pfizer_diff], [S_vaccinated_moderna_one, S_vaccinated_moderna_two, S_vaccinated_diff]]]]
   = [[[S_unvaccinated_0to9, S_unvaccinated_10to19, S_vaccinated_20above], [[S_vaccinated_jj_10to19, S_vaccinated_jj_20above]], [[S_vaccinated_pfizer_one_10to19, S_vaccinated_pfizer_one_20above], [[S_vaccinated_pfizer_two_10to19, ...], [S_vaccinated_pfizer_diff_10to19, ...]], [[S_vaccinated_moderna_one_10to19, ...], [...], [...]], [[S_vaccinated_moderna_diff_10to19, ...], [...], [...]]]]]

Screenshots
Current incorrect:
Screenshot 2024-08-26 at 11 15 15 AM

Sketch of the correct structure of each state node
Screenshot 2024-08-26 at 11 31 30 AM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants