Skip to content

Commit

Permalink
Fix default immune length alpha and beta
Browse files Browse the repository at this point in the history
  • Loading branch information
atmyers committed Jan 28, 2025
1 parent 933109a commit 675fb55
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions docs/source/usage/how_to_run.rst
Original file line number Diff line number Diff line change
Expand Up @@ -130,10 +130,10 @@ The following inputs specify the disease parameters:
* ``disease.vac_eff`` (`float`, default ``0``)
The vaccine efficacy - the probability of transmission will be multiplied by one minus this factor.
`Vaccination is not yet implemented, so this factor must be left at 0`.
* ``disease.immune_length_alpha`` (`float`, default ``9.0``)
* ``disease.immune_length_alpha`` (`float`, default ``540.0``)
Alpha parameter for the immunity length Gamma distribution. The immunity length is the length of time in days that agents
are immune to the disease after recovering from it. For a Gamma distribution, the mean is alpha*beta and the variance is alpha*beta^2.
* ``disease.immune_length_beta`` (`float`, default ``20.0``)
* ``disease.immune_length_beta`` (`float`, default ``0.33``)
Beta parameter for the immunity length Gamma distribution. The immunity length is the length of time in days that agents
are immune to the disease after recovering from it. For a Gamma distribution, the mean is alpha*beta and the variance is alpha*beta^2.
* ``disease.latent_length_alpha`` (`float`, default ``9.0``)
Expand Down
4 changes: 2 additions & 2 deletions examples/inputs.defaults
Original file line number Diff line number Diff line change
Expand Up @@ -92,9 +92,9 @@ disease.asymp_relative_inf = 0.75
# Vaccine efficacy. Not yet implemented; leave at 0.
disease.vac_eff = 0
# Alpha parameter for the immume length Gamma distribution. The immune length is the length in days that agents are immune after recovery from an infection.
disease.immune_length_alpha = 9.0
disease.immune_length_alpha =540.0
# Beta parameter for the immume length Gamma distribution. The immune length is the length in days that agents are immune after recovery from an infection.
disease.immune_length_beta = 20.0
disease.immune_length_beta = 0.33
# Alpha parameter for the latent length Gamma distribution. The latent length is the length in days from infection until an agent becomes infectious.
disease.latent_length_alpha = 9.0
# Beta parameter for the latent length Gamma distribution. The latent length is the length in days from infection until an agent becomes infectious.
Expand Down
4 changes: 2 additions & 2 deletions src/DiseaseParm.H
Original file line number Diff line number Diff line change
Expand Up @@ -82,8 +82,8 @@ struct DiseaseParm
Real child_compliance; /*!< Child compliance with masking ?? */
Real child_HH_closure; /*!< Multiplier for household contacts during school closure */

Real immune_length_alpha = Real(9.0); /*! alpha parameter for gamma distribution*/
Real immune_length_beta = Real(20.0); /*! beta parameter for gamma distribution*/
Real immune_length_alpha = Real(540.0); /*! alpha parameter for gamma distribution*/
Real immune_length_beta = Real(0.33); /*! beta parameter for gamma distribution*/

Real latent_length_alpha = Real(9.0); /*! alpha parameter for gamma distribution*/
Real latent_length_beta = Real(0.33); /*! beta parameter for gamma distribution*/
Expand Down

0 comments on commit 675fb55

Please sign in to comment.