Adding R script with example of correlation estimation.