This page provides the R scripts used in my publications. Please refer to the Publications page for the complete citation.
To download R, visit http://cran.r-project.org. Select your platform and follow the downloading instructions.
Help in developing R scripts can be found in a variety of internet sources. Try googling what you are trying to code and you should find plenty of suggestions.