R analyses and LaTeX of the PhD thesis