Skip to content

Commit

Permalink
Added spatial effect to R calculation
Browse files Browse the repository at this point in the history
  • Loading branch information
chrism0dwk committed May 5, 2021
1 parent 5bf6108 commit 5ded6b1
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion covid19uk/model_spec.py
Original file line number Diff line number Diff line change
Expand Up @@ -343,7 +343,11 @@ def fn(t, state):
),
)

eta = alpha_t_ + param["beta_area"] * log_area[:, tf.newaxis]
eta = (
alpha_t_
+ param["beta_area"] * log_area[:, tf.newaxis]
+ param["sigma_space"] * param["spatial_effect"]
)
infec_rate = (
tf.math.exp(eta)
* (
Expand Down

0 comments on commit 5ded6b1

Please sign in to comment.