·
Vectorization of R loop for speed:
https://swcarpentry.github.io/r-novice-inflammation/15-supp-loops-in-depth/
R for Markov Decision Process: https://cran.rproject.org/web/packages/MDPtoolbox/MDPtoolbox.pdf
Refactor methods in R which have too many input parameters:
Parallel in R: https://www.r-bloggers.com/how-to-go-parallel-in-r-basics-tips/
C++ in R: http://www.rcpp.org/