I had a first go at trying to reproduce the #2019nCoV #R0 results of Imai et al (Fig 1, Report 3 https://www.imperial.ac.uk/mrc-global-infectious-disease-analysis/news--wuhan-coronavirus/ …), using code from @JulRiou @C_Althaus and didn't have much luck. Can anyone see where I'm going wrong?https://gist.github.com/sdwfrost/b3d0c4cbff7ff460562162affceffb17 …
-
-
Now I’m embarrassed you use my inefficient R code with too many combine functions in the while loop. But it works. Will look at your code later. Our study is out in
@Eurosurveillanc, by the way: https://www.eurosurveillance.org/content/10.2807/1560-7917.ES.2020.25.4.2000058 …1 odpowiedź 0 podanych dalej 1 polubiony -
No need to be embarrassed, but yes, there's lots of reallocations! Pre-allocating a fixed vector of max_cases times would be much faster (as I'm sure you know), but introduces more bookkeeping (and indexing issues cause sooo many bugs). I'll update the ref in my Google doc.
1 odpowiedź 0 podanych dalej 0 polubionych
Yes, the bookkeeping and indexing was exactly where I didn’t want to go to.
Wydaje się, że ładowanie zajmuje dużo czasu.
Twitter jest przeciążony lub wystąpił chwilowy problem. Spróbuj ponownie lub sprawdź status Twittera, aby uzyskać więcej informacji.