Guide to Advanced Statistical Analysis in R