Code Monkey home page Code Monkey logo

Comments (6)

xavierdidelot avatar xavierdidelot commented on September 13, 2024

Yes this sounds like a good approach. Bear in mind that these are Gamma distributions, and therefore the mean is shape*scale and the variance is shape*scale^2. Unless you have a good reason to suspect that is not the case, I would keep the sampling time distribution the same as the generation time distribution, which is what happens by default if you do not specify the parameters of the sampling time distribution.

from transphylo.

sriram98v avatar sriram98v commented on September 13, 2024

The mean of the gamma distribution presenting in your paper (TB experiment) comes to 0.39 (1.3 * 0.3). Does this equate to saying that the average generation time of TB is 0.39 years?

from transphylo.

xavierdidelot avatar xavierdidelot commented on September 13, 2024

The paper states that we "used a Gamma distribution with shape parameter 1.3 and rate parameter 0.3"
In other words this has shape 1.3 and scale 1/0.3=3.333
The mean is shape * scale=1.3*3.333=4.33 years
The 95% range is from 0.23 to 14.31 years

from transphylo.

sriram98v avatar sriram98v commented on September 13, 2024

If I am working with a pathogen with a smaller generation time (say 2 months), should I select the parameters of the gamma distribution such that the mean is ~0.16 (2/12)?

from transphylo.

xavierdidelot avatar xavierdidelot commented on September 13, 2024

Yes that's right, and if you also consider the variance you want around this mean then you can deduce both scale and shape parameters as explained previously in this thread.

from transphylo.

sriram98v avatar sriram98v commented on September 13, 2024

Understood. I appreciate your help!

from transphylo.

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.