Coder Social home page Coder Social logo

Comments (5)

cliffckerr avatar cliffckerr commented on August 12, 2024 1

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

AndrewC19 avatar AndrewC19 commented on August 12, 2024

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.

AndrewC19 avatar AndrewC19 commented on August 12, 2024

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.

cliffckerr avatar cliffckerr commented on August 12, 2024

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.

AndrewC19 avatar AndrewC19 commented on August 12, 2024

Thanks for the explanation, that makes sense.

from covasim.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.