estimate_r function

Estimates the linear correlation (Pearson's r) between two continuous variables