You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -218,7 +218,7 @@ ihr <- 0.1 # infection-hospitalisation ratio
218
218
hosp <- new_cases$new_infections * ihr
219
219
```
220
220
221
-
#### 2. Calculate the estimated number of new hospitalisations using the onset to admission distribution
221
+
#### 2. Calculate the estimated number of new hospitalisations using the infection to admission distribution
222
222
223
223
To estimate the number of new hospitalisations we use a method called convolution.
224
224
@@ -231,16 +231,16 @@ If we want to know how people are admitted to hospital on day $t$, then we need
231
231
232
232
The function `convolve()` requires inputs of two vectors which will be convolved and `type`. Here we will specify `type = "open"`, this fills the vectors with 0s to ensure they are the same length.
233
233
234
-
The inputs to be convolved are the expected number of infections that will end up hospitalised (`hosp`) and the density values of the distribution of onset to admission times. We will calculate the density for the minimum possible value (0 days) up to the tail of the distribution (here defined as the 99.9th quantile, i.e. it is very unlikely any cases will be hospitalised after a delay this long).
234
+
The inputs to be convolved are the expected number of infections that will end up hospitalised (`hosp`) and the density values of the distribution of infection to admission times. We will calculate the density for the minimum possible value (0 days) up to the tail of the distribution (here defined as the 99.9th quantile, i.e. it is very unlikely any cases will be hospitalised after a delay this long).
235
235
236
236
Convolution requires one of the inputs to be reversed, in our case we will reverse the density distribution of infection to admission times. This is because if people infected earlier in time get admitted today, it means they've had a longer delay from infection to admission than someone infected more recently. In effect the infection to admission delay tells us how far we have to 'rewind' time to find previously new infections that are now showing up as hospital admissions.
0 commit comments