Skip to content

Commit

Permalink
PMC age subsetting has a mistake in it. timesteps and time_index in s…
Browse files Browse the repository at this point in the history
…hould only be used in choosing the correct coverage, not to calculate the implementation ages. The code should follow that seen in the epi_pev age subsetting.
  • Loading branch information
RJSheppard committed Dec 10, 2024
1 parent fa12d59 commit 0dfe13c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/pmc.R
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ create_pmc_process <- function(
return()
}
in_age <- variables$birth$get_index_of(
timesteps[time_index] - parameters$pmc_ages
timestep - parameters$pmc_ages
)$to_vector()
target <- in_age[sample_intervention(in_age, 'pmc', coverage, correlations)]

Expand Down

0 comments on commit 0dfe13c

Please sign in to comment.