Comments (5)
@AndrewC19 That's correct, the discrepancy is due to single-person households. I think the calculations you have above are correct -- a person is considered "in" a layer if and only if they have one or more contacts in that layer. As an extreme example, if every single household consisted of a single person (e.g., some kind of dorm situation), we wouldn't include that layer in the network, since there wouldn't be any contacts.
from covasim.
On further inspection, I guess the discrepancy could be explained by single person households. If this is the case, is there an alternative way I can measure the number of individuals in each contact layer?
from covasim.
Thanks for clearing that up @cliffckerr.
Just to confirm then, there is no way to see how many agents belong to each layer (home, school, workplace, community), irrespective of their contacts?
from covasim.
I guess I'd phrase it a little differently...it's correct that there's no way to see how many agents were eligible to be in a particular layer, but the numbers you quoted above are the number of agents per layer. Depending on the way the network was generated (e.g. hybrid vs SynthPops), school enrollment can be <100%, and employment can be <100%. A 14-year-old who doesn't go to school is not in the schools layer with no contacts -- they're not in the schools layer. Likewise, a person living alone is not in the household layer with no contacts -- they're not in the household network.
from covasim.
Thanks for the explanation, that makes sense.
from covasim.
Related Issues (20)
- bug within the analysis.py (not able to pass **kwargs) HOT 2
- Error in cv.make_synthpop HOT 2
- Faulty error message: rel_imm_variant is not a valid key HOT 2
- Set vaccine efficacy via vaccinate_num() HOT 1
- Analyzer and sim.compute_fit() give different `n_dead` HOT 1
- Hanging comma on `plots` value in defaults.get_default_plots() causes `sim.plot(to_plot='seir')` to fail HOT 1
- FAQ: Counting tests, diagnoses & infections?
- Release log date bug HOT 1
- No impact from changing the βnab_effβ parameter HOT 1
- Covasim tutorials on Binder fail on sciris import HOT 2
- The copyright footer needs to be updated to MIT
- Best way to use decision making models for each person in a population HOT 1
- Interaction between the pop_scale, pop_infected, and rescale parameters
- how to load custom location.json generated by SynthPops? HOT 1
- Bug in tut_intro.ipynb when calling cv.MultiSim HOT 2
- Contact between identical agentid? HOT 2
- covasim - local doc build failing (make html) HOT 6
- Economics / Costing Analysis
- The footer.html customization isn't being applied in the Sphinx PyData theme HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from covasim.