A repository storing two R program of chapter 4 of the PhD thesis