From 52ab104dc620edf0a533c86d9074718f08f93dc1 Mon Sep 17 00:00:00 2001
From: pqiao29 <pqiao@student.unimelb.edu.au>
Date: Tue, 31 Mar 2020 11:00:14 +1100
Subject: [PATCH] debug

---
 R/infection.FUN.R | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/R/infection.FUN.R b/R/infection.FUN.R
index b6c9e56..181d78d 100644
--- a/R/infection.FUN.R
+++ b/R/infection.FUN.R
@@ -100,7 +100,7 @@ infection.FUN <- function(dat, at, seed = NULL){
         
         # Transmission from exposed
         ## Expected acts
-        acts <- round(ifelse(length(act.rate.i) > 1, act.rate.i[at - 1], act.rate.i) *
+        acts <- round(ifelse(length(act.rate.e) > 1, act.rate.e[at - 1], act.rate.e) *
                           dat$epi$num[at - 1] / 2 )
         
         ## Edgelist: s, e
-- 
GitLab