R files used for analysis