reconhub / earlyR

Estimation of infectiousness in the early stage of an outbreak, with short-term predictions.
http://www.repidemicsconsortium.org/earlyR
Other
9 stars 3 forks source link

Confidence intervals on R #10

Open annecori opened 5 years ago

annecori commented 5 years ago

Can we add this? I think this should do it:

R$R_grid[min(which(cumsum(R$R_like / sum(R$R_like)) - 0.025 >=0))]
R$R_grid[min(which(cumsum(R$R_like / sum(R$R_like)) - 0.975 >=0))]
thibautjombart commented 5 years ago

Good idea!