Skip to content

Commit

Permalink
Truncnormal target around seroprevalence
Browse files Browse the repository at this point in the history
  • Loading branch information
romain-ragonnet committed Jul 27, 2023
1 parent 7f8a9d2 commit 3f952da
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions autumn/projects/sm_covid2/common_school/calibration.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,11 +63,17 @@ def get_bcm_object(iso3, analysis="main"):
if len(project.calibration.targets) > 1:
sero_target = project.calibration.targets[1]
targets.append(
est.BinomialTarget(
"prop_ever_infected_age_matched",
sero_target.data,
sample_sizes=sero_target.sample_sizes
est.TruncatedNormalTarget(
"prop_ever_infected_age_matched",
sero_target.data,
trunc_range=[0., 1.], # will reject runs with >10% attack rate before epidemic
stdev=.1
)
# est.BinomialTarget(
# "prop_ever_infected_age_matched",
# sero_target.data,
# sample_sizes=sero_target.sample_sizes
# )
)

# Add a safeguard target to prevent a premature epidemic occurring before the first reported death
Expand Down

0 comments on commit 3f952da

Please sign in to comment.