Skip to content

Commit

Permalink
Update time from onset of infectiousness to testing
Browse files Browse the repository at this point in the history
  • Loading branch information
ottiP committed Jan 19, 2022
1 parent 25e9010 commit abd4c20
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/generate_delay_dist.R
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ generate_delay_dist<-function(df){
#Could modify one of these to be time from infection to test
expose.dist= rgamma(n.sim,shape=4,scale=1) #duration latent: Davies et al., The Lancet, 2020
infect.dist= rgamma(n.sim,shape=4,scale=5/4) #duration of subclinical infectiousness -> temptative, this should be duration of clinical infectiousness, Davies, Lancet, 2020
delay.dist= rgamma(n.sim,shape=2.34,scale=1/2.59) #duration infectiousness to test #from Li.et al., Science May 2020, estimates after 23rd Jan, parameters for Gamma should be a and b
delay.dist= rgamma(n.sim,shape=1.5,scale=1) #duration infectiousness to test #from Li.et al., Science May 2020, estimates after 23rd Jan, parameters for Gamma should be a and b

df$date.exposed <- floor_date(as.Date(df$PCR_DATE - delay.dist - expose.dist),'day')
df$date.exposed[df$IS_POSITIVE_CD!=2] <- as.Date('2099-01-01')
Expand Down

0 comments on commit abd4c20

Please sign in to comment.