R scripts for various statistical analyses of data