TL;DR: Feel free to directly jump to The lambda.r implementation if you only want to see that. The full code is linked as a Github Gist at the end of the article.
Haskell and R are quite different programming languages. One is purely functional, statically typed and prominently features some of the most obscure abstractions in Computer Science. The other one lives at a particularly weird spot at the crossroad of the object-oriented, imperative and functional paradigms, has a ductile and dynamic type system and is optimized for the pragmatic needs of data analysis.
But still these two languages share…
by Clemens Schmid and Stephan Schiffels (both Max Planck Institute for the Science of Human History Jena)
Acknowledgements: We got some valuable input and corrections from Martin Lange and Johannes Boog (both Helmholtz Centre for Environmental Research Leipzig)
Disclaimer: We have no epidemiological training and share these results without warranty of any kind. They should not be used as a basis for decision making and we refer to the respected authorities (e.g. for Germany the Robert Koch Institute) for reliable information and models. This post is only an interesting exercise in data analysis.
Note: Analyses in this post are from…